ilovesoup | c9fef1d | 2012-07-08 19:30:42 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
| 2 | create dataverse test; |
| 3 | use dataverse test; |
| 4 | |
| 5 | write output to nc1:"rttest/numeric_abs2.adm"; |
| 6 | |
| 7 | |
| 8 | let $c0 := float("-20.1") |
| 9 | let $c1 := float("-20.56e-30") |
| 10 | let $c2 := float("NaN") |
| 11 | let $c3 := float("INF") |
| 12 | let $c4 := float("-INF") |
| 13 | let $c5 := float("-0.0") |
| 14 | let $c6 := float("0.0") |
| 15 | return {"f0": numeric-abs($c0), "f1": numeric-abs($c1),"f2": numeric-abs($c2), |
| 16 | "f3": numeric-abs($c3),"f4": numeric-abs($c4),"f5": numeric-abs($c5), "f6": numeric-abs($c6)} |