| drop dataverse test if exists; |
| create dataverse test; |
| use dataverse test; |
| |
| write output to nc1:"rttest/numeric_round-half-to-even2.adm"; |
| |
| |
| let $c0 := float("0.5") |
| let $c1 := float("-20.5") |
| let $c2 := float("NaN") |
| let $c3 := float("INF") |
| let $c4 := float("-INF") |
| let $c5 := float("-0.0") |
| let $c6 := float("0.0") |
| return {"f0": numeric-round-half-to-even($c0), "f1": numeric-round-half-to-even($c1),"f2": numeric-round-half-to-even($c2), |
| "f3": numeric-round-half-to-even($c3),"f4": numeric-round-half-to-even($c4),"f5": numeric-round-half-to-even($c5), "f6": numeric-round-half-to-even($c6)} |