blob: 8024e68fe8cb73ac876c30b08b8417cdda3e40e7 [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-even3.adm";
6
7
8let $c0 := double("0.5")
9let $c1 := double("-20.5")
10let $c2 := double("NaN")
11let $c3 := double("INF")
12let $c4 := double("-INF")
13let $c5 := double("-0.0")
14let $c6 := double("0.0")
jarodwenf5cd0a72013-03-17 02:08:33 +000015let $c7 := double("-6223372036854775807.89239")
ilovesoupc9fef1d2012-07-08 19:30:42 +000016return {"d0": numeric-round-half-to-even($c0), "d1": numeric-round-half-to-even($c1), "d2": numeric-round-half-to-even($c2),
jarodwenf5cd0a72013-03-17 02:08:33 +000017 "d3": numeric-round-half-to-even($c3), "d4": numeric-round-half-to-even($c4), "d5": numeric-round-half-to-even($c5), "d6": numeric-round-half-to-even($c6), "d7": numeric-round-half-to-even($c7)}