Lines Matching refs:nnf

616     UNumberFormat *nnf;  in TestRounding487()  local
621 nnf = unum_open(UNUM_DEFAULT, NULL,0,"en_US",NULL, &status); in TestRounding487()
626 roundingTest(nnf, 0.00159999, 4, "0.0016"); in TestRounding487()
627 roundingTest(nnf, 0.00995, 4, "0.01"); in TestRounding487()
629 roundingTest(nnf, 12.3995, 3, "12.4"); in TestRounding487()
631 roundingTest(nnf, 12.4999, 0, "12"); in TestRounding487()
632 roundingTest(nnf, - 19.5, 0, "-20"); in TestRounding487()
635 unum_close(nnf); in TestRounding487()
1021 UNumberFormat *nnf; in TestRounding5350() local
1026 nnf = unum_open(UNUM_DEFAULT, NULL,0,"en_US",NULL, &status); in TestRounding5350()
1033 unum_setAttribute(nnf, UNUM_MAX_FRACTION_DIGITS, 2); in TestRounding5350()
1034 roundingTest2(nnf, -0.125, UNUM_ROUND_CEILING, "-0.12"); in TestRounding5350()
1035 roundingTest2(nnf, -0.125, UNUM_ROUND_FLOOR, "-0.13"); in TestRounding5350()
1036 roundingTest2(nnf, -0.125, UNUM_ROUND_DOWN, "-0.12"); in TestRounding5350()
1037 roundingTest2(nnf, -0.125, UNUM_ROUND_UP, "-0.13"); in TestRounding5350()
1038 roundingTest2(nnf, 0.125, UNUM_FOUND_HALFEVEN, "0.12"); in TestRounding5350()
1039 roundingTest2(nnf, 0.135, UNUM_ROUND_HALFDOWN, "0.13"); in TestRounding5350()
1040 roundingTest2(nnf, 0.125, UNUM_ROUND_HALFUP, "0.13"); in TestRounding5350()
1041 roundingTest2(nnf, 0.135, UNUM_FOUND_HALFEVEN, "0.14"); in TestRounding5350()
1043 roundingTest2(nnf, 1.00, UNUM_ROUND_UP, "1"); in TestRounding5350()
1044 roundingTest2(nnf, 24.25, UNUM_ROUND_UP, "24.25"); in TestRounding5350()
1045 roundingTest2(nnf, 24.25, UNUM_ROUND_CEILING, "24.25"); in TestRounding5350()
1046 roundingTest2(nnf, -24.25, UNUM_ROUND_UP, "-24.25"); in TestRounding5350()
1049 roundingTest2(nnf, 1.0000001, UNUM_ROUND_CEILING, "1.01"); in TestRounding5350()
1050 roundingTest2(nnf, 1.0000001, UNUM_ROUND_FLOOR, "1"); in TestRounding5350()
1051 roundingTest2(nnf, 1.0000001, UNUM_ROUND_DOWN, "1"); in TestRounding5350()
1052 roundingTest2(nnf, 1.0000001, UNUM_ROUND_UP, "1.01"); in TestRounding5350()
1053 roundingTest2(nnf, 1.0000001, UNUM_FOUND_HALFEVEN, "1"); in TestRounding5350()
1054 roundingTest2(nnf, 1.0000001, UNUM_ROUND_HALFDOWN, "1"); in TestRounding5350()
1055 roundingTest2(nnf, 1.0000001, UNUM_ROUND_HALFUP, "1"); in TestRounding5350()
1057 roundingTest2(nnf, -1.0000001, UNUM_ROUND_CEILING, "-1"); in TestRounding5350()
1058 roundingTest2(nnf, -1.0000001, UNUM_ROUND_FLOOR, "-1.01"); in TestRounding5350()
1059 roundingTest2(nnf, -1.0000001, UNUM_ROUND_DOWN, "-1"); in TestRounding5350()
1060 roundingTest2(nnf, -1.0000001, UNUM_ROUND_UP, "-1.01"); in TestRounding5350()
1061 roundingTest2(nnf, -1.0000001, UNUM_FOUND_HALFEVEN, "-1"); in TestRounding5350()
1062 roundingTest2(nnf, -1.0000001, UNUM_ROUND_HALFDOWN, "-1"); in TestRounding5350()
1063 roundingTest2(nnf, -1.0000001, UNUM_ROUND_HALFUP, "-1"); in TestRounding5350()
1065 unum_close(nnf); in TestRounding5350()