blob: 22ff5ad7c5bfec67fd567f5a3424b33de9f30294 [file] [log] [blame]
ilovesoupc9fef1d2012-07-08 19:30:42 +00001drop dataverse test if exists;
2create dataverse test;
3use dataverse test;
4
5write output to nc1:"rttest/numeric_round-half-to-even22.adm";
6
7
8let $c0 := float("0.555")
9let $c1 := float("0.322")
10let $c2 := float("NaN")
11let $c3 := float("INF")
12let $c4 := float("-INF")
13let $c5 := float("-0.0")
14let $c6 := float("0.0")
15return {"d0": numeric-round-half-to-even2($c0,2), "d1": numeric-round-half-to-even2($c1,2),"d2": numeric-round-half-to-even2($c2,3),
16 "d3": numeric-round-half-to-even2($c3,4),"d4": numeric-round-half-to-even2($c4,5),"d5": numeric-round-half-to-even2($c5,6), "d6": numeric-round-half-to-even2($c6,0)}