| drop dataverse test if exists; |
| create dataverse test; |
| use dataverse test; |
| |
| write output to nc1:"rttest/numeric_round-half-to-even22.adm"; |
| |
| |
| let $c0 := float("0.555") |
| let $c1 := float("0.322") |
| let $c2 := float("NaN") |
| let $c3 := float("INF") |
| let $c4 := float("-INF") |
| let $c5 := float("-0.0") |
| let $c6 := float("0.0") |
| return {"d0": numeric-round-half-to-even2($c0,2), "d1": numeric-round-half-to-even2($c1,2),"d2": numeric-round-half-to-even2($c2,3), |
| "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)} |