blob: a112281286ca2194af51e5545202d75edece9ff9 [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-even24.adm";
6
7
8let $c0 := double("0.015")
9let $c1 := double("0.025")
10let $c2 := double("3.567812E+3")
11let $c3 := double("4.7564E-3")
12let $c4 := double("35612.25")
jarodwenf5cd0a72013-03-17 02:08:33 +000013return {"d0": numeric-round-half-to-even2($c0, 2), "d1": numeric-round-half-to-even2($c1, 2),"d2": numeric-round-half-to-even2($c2, 2),
14 "d3": numeric-round-half-to-even2($c3, 2),"d4": numeric-round-half-to-even2($c4, -2), "d5": numeric-round-half-to-even2(null, -2)}