| drop dataverse test if exists; |
| create dataverse test; |
| use dataverse test; |
| |
| write output to nc1:"rttest/numeric_round3.adm"; |
| |
| |
| let $c0 := double("20.1") |
| let $c1 := double("-20.56e-30") |
| let $c2 := double("NaN") |
| let $c3 := double("INF") |
| let $c4 := double("-INF") |
| let $c5 := double("-0.0") |
| let $c6 := double("0.0") |
| let $c7 := double("-6223372036854775807.89239") |
| return {"d0": numeric-round($c0), "d1": numeric-round($c1),"d2": numeric-round($c2), |
| "d3": numeric-round($c3),"d4": numeric-round($c4),"d5": numeric-round($c5), "d6": numeric-round($c6), "d7": numeric-round($c7)} |