vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
| 2 | |
| 3 | create dataverse test; |
| 4 | |
| 5 | use dataverse test; |
| 6 | |
| 7 | write output to nc1:"rttest/comparison_float.adm"; |
| 8 | |
| 9 | let $c1 := int8("+1") |
| 10 | let $c2 := int16("2") |
| 11 | let $c3 := int32("+3") |
| 12 | let $c4 := int64("-4") |
| 13 | let $c5 := float("-5.5f") |
| 14 | let $c6 := double("-6.5d") |
| 15 | let $r1 := $c5 > $c1 |
| 16 | let $r2 := $c5 >= $c2 |
| 17 | let $r3 := $c5 < $c3 |
| 18 | let $r4 := $c5 <= $c4 |
| 19 | let $r5 := $c5 = $c5 |
| 20 | let $r6 := $c5 != $c6 |
| 21 | return {"result1": $r1,"result2": $r2,"result3": $r3,"result4": $r4,"result5": $r5, "result6": $r6} |