• Home
  • Raw
  • Download

Lines Matching refs:nnf

549     UNumberFormat *nnf;  in TestRounding487()  local
554 nnf = unum_open(UNUM_DEFAULT, NULL,0,"en_US",NULL, &status); in TestRounding487()
559 roundingTest(nnf, 0.00159999, 4, "0.0016"); in TestRounding487()
560 roundingTest(nnf, 0.00995, 4, "0.01"); in TestRounding487()
562 roundingTest(nnf, 12.3995, 3, "12.4"); in TestRounding487()
564 roundingTest(nnf, 12.4999, 0, "12"); in TestRounding487()
565 roundingTest(nnf, - 19.5, 0, "-20"); in TestRounding487()
568 unum_close(nnf); in TestRounding487()
954 UNumberFormat *nnf; in TestRounding5350() local
959 nnf = unum_open(UNUM_DEFAULT, NULL,0,"en_US",NULL, &status); in TestRounding5350()
966 unum_setAttribute(nnf, UNUM_MAX_FRACTION_DIGITS, 2); in TestRounding5350()
967 roundingTest2(nnf, -0.125, UNUM_ROUND_CEILING, "-0.12"); in TestRounding5350()
968 roundingTest2(nnf, -0.125, UNUM_ROUND_FLOOR, "-0.13"); in TestRounding5350()
969 roundingTest2(nnf, -0.125, UNUM_ROUND_DOWN, "-0.12"); in TestRounding5350()
970 roundingTest2(nnf, -0.125, UNUM_ROUND_UP, "-0.13"); in TestRounding5350()
971 roundingTest2(nnf, 0.125, UNUM_FOUND_HALFEVEN, "0.12"); in TestRounding5350()
972 roundingTest2(nnf, 0.135, UNUM_ROUND_HALFDOWN, "0.13"); in TestRounding5350()
973 roundingTest2(nnf, 0.125, UNUM_ROUND_HALFUP, "0.13"); in TestRounding5350()
974 roundingTest2(nnf, 0.135, UNUM_FOUND_HALFEVEN, "0.14"); in TestRounding5350()
976 roundingTest2(nnf, 1.00, UNUM_ROUND_UP, "1"); in TestRounding5350()
977 roundingTest2(nnf, 24.25, UNUM_ROUND_UP, "24.25"); in TestRounding5350()
978 roundingTest2(nnf, 24.25, UNUM_ROUND_CEILING, "24.25"); in TestRounding5350()
979 roundingTest2(nnf, -24.25, UNUM_ROUND_UP, "-24.25"); in TestRounding5350()
982 roundingTest2(nnf, 1.0000001, UNUM_ROUND_CEILING, "1.01"); in TestRounding5350()
983 roundingTest2(nnf, 1.0000001, UNUM_ROUND_FLOOR, "1"); in TestRounding5350()
984 roundingTest2(nnf, 1.0000001, UNUM_ROUND_DOWN, "1"); in TestRounding5350()
985 roundingTest2(nnf, 1.0000001, UNUM_ROUND_UP, "1.01"); in TestRounding5350()
986 roundingTest2(nnf, 1.0000001, UNUM_FOUND_HALFEVEN, "1"); in TestRounding5350()
987 roundingTest2(nnf, 1.0000001, UNUM_ROUND_HALFDOWN, "1"); in TestRounding5350()
988 roundingTest2(nnf, 1.0000001, UNUM_ROUND_HALFUP, "1"); in TestRounding5350()
990 roundingTest2(nnf, -1.0000001, UNUM_ROUND_CEILING, "-1"); in TestRounding5350()
991 roundingTest2(nnf, -1.0000001, UNUM_ROUND_FLOOR, "-1.01"); in TestRounding5350()
992 roundingTest2(nnf, -1.0000001, UNUM_ROUND_DOWN, "-1"); in TestRounding5350()
993 roundingTest2(nnf, -1.0000001, UNUM_ROUND_UP, "-1.01"); in TestRounding5350()
994 roundingTest2(nnf, -1.0000001, UNUM_FOUND_HALFEVEN, "-1"); in TestRounding5350()
995 roundingTest2(nnf, -1.0000001, UNUM_ROUND_HALFDOWN, "-1"); in TestRounding5350()
996 roundingTest2(nnf, -1.0000001, UNUM_ROUND_HALFUP, "-1"); in TestRounding5350()
998 unum_close(nnf); in TestRounding5350()