• Home
  • Raw
  • Download

Lines Matching refs:digits

133             DigitList &digits,
146 const DigitList &digits);
150 const VisibleDigits &digits);
154 const VisibleDigitsWithExponent &digits);
158 const VisibleDigits &digits,
165 const VisibleDigitsWithExponent &digits,
184 int64_t expected, const VisibleDigits &digits);
186 double expected, const VisibleDigits &digits);
391 DigitList digits; in TestQuantize() local
394 digits.set(1); in TestQuantize()
395 digits.quantize(quantity, status); in TestQuantize()
396 verifyDigitList(".9996", digits); in TestQuantize()
400 digits.set(1.00044); in TestQuantize()
401 digits.roundAtExponent(-5); in TestQuantize()
402 digits.quantize(quantity, status); in TestQuantize()
403 verifyDigitList("1.00128", digits); in TestQuantize()
407 digits.set(0.99876); in TestQuantize()
408 digits.roundAtExponent(-5); in TestQuantize()
409 digits.quantize(quantity, status); in TestQuantize()
410 verifyDigitList(".99792", digits); in TestQuantize()
416 DigitList digits; in TestConvertScientificNotation() local
418 digits.set(186283); in TestConvertScientificNotation()
419 assertEquals("", 5, digits.toScientific(1, 1)); in TestConvertScientificNotation()
422 digits); in TestConvertScientificNotation()
425 digits.set(186283); in TestConvertScientificNotation()
426 assertEquals("", 0, digits.toScientific(6, 1)); in TestConvertScientificNotation()
429 digits); in TestConvertScientificNotation()
432 digits.set(186283); in TestConvertScientificNotation()
433 assertEquals("", -2, digits.toScientific(8, 1)); in TestConvertScientificNotation()
436 digits); in TestConvertScientificNotation()
439 digits.set(43561); in TestConvertScientificNotation()
440 assertEquals("", 6, digits.toScientific(-1, 3)); in TestConvertScientificNotation()
443 digits); in TestConvertScientificNotation()
446 digits.set(43561); in TestConvertScientificNotation()
447 assertEquals("", 3, digits.toScientific(0, 3)); in TestConvertScientificNotation()
450 digits); in TestConvertScientificNotation()
453 digits.set(43561); in TestConvertScientificNotation()
454 assertEquals("", 3, digits.toScientific(2, 3)); in TestConvertScientificNotation()
457 digits); in TestConvertScientificNotation()
460 digits.set(43561); in TestConvertScientificNotation()
461 assertEquals("", 0, digits.toScientific(3, 3)); in TestConvertScientificNotation()
464 digits); in TestConvertScientificNotation()
467 digits.set(43561); in TestConvertScientificNotation()
468 assertEquals("", 0, digits.toScientific(5, 3)); in TestConvertScientificNotation()
471 digits); in TestConvertScientificNotation()
474 digits.set(43561); in TestConvertScientificNotation()
475 assertEquals("", -3, digits.toScientific(6, 3)); in TestConvertScientificNotation()
478 digits); in TestConvertScientificNotation()
481 digits.set(43561); in TestConvertScientificNotation()
482 assertEquals("", -3, digits.toScientific(8, 3)); in TestConvertScientificNotation()
485 digits); in TestConvertScientificNotation()
488 digits.set(43561); in TestConvertScientificNotation()
489 assertEquals("", -6, digits.toScientific(9, 3)); in TestConvertScientificNotation()
492 digits); in TestConvertScientificNotation()
497 DigitList digits; in TestLowerUpperExponent() local
499 digits.set(98.7); in TestLowerUpperExponent()
500 assertEquals("", -1, digits.getLowerExponent()); in TestLowerUpperExponent()
501 assertEquals("", 2, digits.getUpperExponent()); in TestLowerUpperExponent()
505 DigitList digits; in TestRounding() local
506 uprv_decContextSetRounding(&digits.fContext, DEC_ROUND_CEILING); in TestRounding()
509 digits.set(789.123); in TestRounding()
510 digits.roundAtExponent(100); in TestRounding()
513 digits); in TestRounding()
517 digits.set(789.123); in TestRounding()
518 digits.roundAtExponent(1); in TestRounding()
521 digits); in TestRounding()
525 digits.set(789.123); in TestRounding()
526 digits.roundAtExponent(1); in TestRounding()
527 verifyDigitList("790", digits); in TestRounding()
531 digits.set(788.123); in TestRounding()
532 digits.roundAtExponent(0); in TestRounding()
533 verifyDigitList("789", digits); in TestRounding()
537 digits.set(789.123); in TestRounding()
538 digits.roundAtExponent(-2); in TestRounding()
539 verifyDigitList("789.13", digits); in TestRounding()
543 digits.set(789.123); in TestRounding()
544 digits.roundAtExponent(-3); in TestRounding()
545 verifyDigitList("789.123", digits); in TestRounding()
549 digits.set(789.123); in TestRounding()
550 digits.roundAtExponent(-100); in TestRounding()
551 verifyDigitList("789.123", digits); in TestRounding()
555 digits.set(-789.123); in TestRounding()
556 digits.roundAtExponent(-2); in TestRounding()
557 digits.setPositive(TRUE); in TestRounding()
558 verifyDigitList("789.12", digits); in TestRounding()
562 digits.set(789.123); in TestRounding()
563 digits.roundAtExponent(INT32_MIN, 1); in TestRounding()
564 verifyDigitList("800", digits); in TestRounding()
568 digits.set(789.123); in TestRounding()
569 digits.roundAtExponent(INT32_MIN, 5); in TestRounding()
570 verifyDigitList("789.13", digits); in TestRounding()
574 digits.set(789.123); in TestRounding()
575 digits.roundAtExponent(INT32_MIN, 6); in TestRounding()
576 verifyDigitList("789.123", digits); in TestRounding()
580 digits.set(789.123); in TestRounding()
581 digits.roundAtExponent(INT32_MIN, INT32_MAX); in TestRounding()
582 verifyDigitList("789.123", digits); in TestRounding()
586 digits.set(789.123); in TestRounding()
587 digits.roundAtExponent(-1, 5); in TestRounding()
588 verifyDigitList("789.2", digits); in TestRounding()
592 digits.set(789.123); in TestRounding()
593 digits.roundAtExponent(-1, 4); in TestRounding()
594 verifyDigitList("789.2", digits); in TestRounding()
598 digits.set(788.123); in TestRounding()
599 digits.roundAtExponent(-1, 3); in TestRounding()
600 verifyDigitList("789", digits); in TestRounding()
603 digits.set(123.456); in TestRounding()
604 digits.round(INT32_MAX); in TestRounding()
605 verifyDigitList("123.456", digits); in TestRounding()
608 digits.set(123.456); in TestRounding()
609 digits.round(1); in TestRounding()
610 verifyDigitList("200", digits); in TestRounding()
803 VisibleDigits digits; in TestDigitFormatterDefaultCtor() local
806 precision.initVisibleDigits(246.801, digits, status); in TestDigitFormatterDefaultCtor()
813 digits, in TestDigitFormatterDefaultCtor()
1674 VisibleDigits digits; in TestLargeIntValue() local
1682 precision.initVisibleDigits(INT64_MAX, digits, status)); in TestLargeIntValue()
1693 precision.initVisibleDigits(INT64_MAX, digits, status)); in TestLargeIntValue()
1694 verifySource(75807.0, digits); in TestLargeIntValue()
1704 precision.initVisibleDigits(INT64_MIN, digits, status)); in TestLargeIntValue()
1715 precision.initVisibleDigits(INT64_MIN, digits, status)); in TestLargeIntValue()
1716 verifySource(75808.0, digits); in TestLargeIntValue()
1723 VisibleDigits digits; in TestIntInitVisibleDigits() local
1730 precision.initVisibleDigits((int64_t) 13LL, digits, status)); in TestIntInitVisibleDigits()
1739 precision.initVisibleDigits((int64_t) -17LL, digits, status)); in TestIntInitVisibleDigits()
1748 precision.initVisibleDigits(INT64_MIN, digits, status)); in TestIntInitVisibleDigits()
1757 precision.initVisibleDigits(INT64_MAX, digits, status)); in TestIntInitVisibleDigits()
1766 precision.initVisibleDigits((int64_t) -31536000LL, digits, status)); in TestIntInitVisibleDigits()
1775 precision.initVisibleDigits((int64_t) 0LL, digits, status)); in TestIntInitVisibleDigits()
1786 precision.initVisibleDigits((int64_t) 0LL, digits, status)); in TestIntInitVisibleDigits()
1797 precision.initVisibleDigits((int64_t) 57LL, digits, status)); in TestIntInitVisibleDigits()
1808 precision.initVisibleDigits((int64_t) -57LL, digits, status)); in TestIntInitVisibleDigits()
1819 precision.initVisibleDigits((int64_t) 235LL, digits, status)); in TestIntInitVisibleDigits()
1828 precision.initVisibleDigits((int64_t) 239LL, digits, status); in TestIntInitVisibleDigits()
1840 precision.initVisibleDigits((int64_t) 153LL, digits, status)); in TestIntInitVisibleDigits()
1848 precision.initVisibleDigits((int64_t) 154LL, digits, status); in TestIntInitVisibleDigits()
1860 precision.initVisibleDigits((int64_t) 150LL, digits, status)); in TestIntInitVisibleDigits()
1866 VisibleDigits digits; in TestIntInitVisibleDigitsToDigitList() local
1874 precision.initVisibleDigits((int64_t) -30LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1885 precision.initVisibleDigits((int64_t) -30LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1896 precision.initVisibleDigits((int64_t) 1381LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1907 precision.initVisibleDigits((int64_t) -1381LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1913 VisibleDigits digits; in TestDoubleInitVisibleDigits() local
1920 precision.initVisibleDigits(2.05, digits, status)); in TestDoubleInitVisibleDigits()
1929 precision.initVisibleDigits(3547.0, digits, status)); in TestDoubleInitVisibleDigits()
1942 precision.initVisibleDigits(-2.05, digits, status)); in TestDoubleInitVisibleDigits()
1952 precision.initVisibleDigits(-2.05, digits, status); in TestDoubleInitVisibleDigits()
1964 precision.initVisibleDigits(-2.05, digits, status); in TestDoubleInitVisibleDigits()
1978 precision.initVisibleDigits(6245.3, digits, status)); in TestDoubleInitVisibleDigits()
1989 precision.initVisibleDigits(6245.3, digits, status)); in TestDoubleInitVisibleDigits()
1997 precision.initVisibleDigits(6245.3, digits, status); in TestDoubleInitVisibleDigits()
2010 precision.initVisibleDigits(2384.9, digits, status)); in TestDoubleInitVisibleDigits()
2019 precision.initVisibleDigits(2384.9, digits, status); in TestDoubleInitVisibleDigits()
2027 VisibleDigits digits; in TestDoubleInitVisibleDigitsToDigitList() local
2036 precision.initVisibleDigits(-2.01, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2047 precision.initVisibleDigits(2385.0, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2057 precision.initVisibleDigits(-45.8251, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2063 VisibleDigits digits; in TestDigitListInitVisibleDigits() local
2072 precision.initVisibleDigits(dlist, digits, status); in TestDigitListInitVisibleDigits()
2083 precision.initVisibleDigits(dlist, digits, status); in TestDigitListInitVisibleDigits()
2091 VisibleDigits digits; in TestSpecialInitVisibleDigits() local
2097 precision.initVisibleDigits(-uprv_getInfinity(), digits, status); in TestSpecialInitVisibleDigits()
2098 assertFalse("", digits.isNaN()); in TestSpecialInitVisibleDigits()
2099 assertTrue("", digits.isInfinite()); in TestSpecialInitVisibleDigits()
2100 assertTrue("", digits.isNegative()); in TestSpecialInitVisibleDigits()
2106 precision.initVisibleDigits(uprv_getInfinity(), digits, status); in TestSpecialInitVisibleDigits()
2107 assertFalse("", digits.isNaN()); in TestSpecialInitVisibleDigits()
2108 assertTrue("", digits.isInfinite()); in TestSpecialInitVisibleDigits()
2109 assertFalse("", digits.isNegative()); in TestSpecialInitVisibleDigits()
2115 precision.initVisibleDigits(uprv_getNaN(), digits, status); in TestSpecialInitVisibleDigits()
2116 assertTrue("", digits.isNaN()); in TestSpecialInitVisibleDigits()
2122 VisibleDigitsWithExponent digits; in TestVisibleDigitsWithExponent() local
2126 precision.initVisibleDigitsWithExponent(389.256, digits, status); in TestVisibleDigitsWithExponent()
2128 "3.89256E2", FALSE, digits); in TestVisibleDigitsWithExponent()
2134 precision.initVisibleDigitsWithExponent(-389.256, digits, status); in TestVisibleDigitsWithExponent()
2136 "3.89256E2", TRUE, digits); in TestVisibleDigitsWithExponent()
2145 precision.initVisibleDigitsWithExponent(12345.67, digits, status); in TestVisibleDigitsWithExponent()
2147 "12.34567E003", FALSE, digits); in TestVisibleDigitsWithExponent()
2156 precision.initVisibleDigitsWithExponent(999.74, digits, status); in TestVisibleDigitsWithExponent()
2158 "10.001E2", FALSE, digits); in TestVisibleDigitsWithExponent()
2253 DigitList digits; in TestDigitAffixesAndPadding() local
2254 digits.set(-1234.5); in TestDigitAffixesAndPadding()
2266 digits, in TestDigitAffixesAndPadding()
2378 DigitList digits; in TestPluralsAndRounding() local
2395 digits.set(0.999); in TestPluralsAndRounding()
2399 digits, in TestPluralsAndRounding()
2405 digits.set(0.9996); in TestPluralsAndRounding()
2409 digits, in TestPluralsAndRounding()
2415 digits.set(1.004); in TestPluralsAndRounding()
2419 digits, in TestPluralsAndRounding()
2426 digits.set(0.9996); in TestPluralsAndRounding()
2430 digits, in TestPluralsAndRounding()
2436 digits.set(1.004); in TestPluralsAndRounding()
2440 digits, in TestPluralsAndRounding()
2447 digits.set(-79.214); in TestPluralsAndRounding()
2451 digits, in TestPluralsAndRounding()
2460 digits.set(79.213562); in TestPluralsAndRounding()
2464 digits, in TestPluralsAndRounding()
2488 DigitList digits; in TestPluralsAndRoundingScientific() local
2503 digits.set(0.99996); in TestPluralsAndRoundingScientific()
2512 digits, in TestPluralsAndRoundingScientific()
2519 digits.set(0.99996); in TestPluralsAndRoundingScientific()
2529 digits, in TestPluralsAndRoundingScientific()
2535 digits.set(-299792458); in TestPluralsAndRoundingScientific()
2547 digits, in TestPluralsAndRoundingScientific()
2556 digits.set(3); in TestPluralsAndRoundingScientific()
2568 digits, in TestPluralsAndRoundingScientific()
2575 digits.set(0.00025001); in TestPluralsAndRoundingScientific()
2587 digits, in TestPluralsAndRoundingScientific()
2593 digits.set(0.0000025001); in TestPluralsAndRoundingScientific()
2605 digits, in TestPluralsAndRoundingScientific()
2612 digits.set(0.0000025499); in TestPluralsAndRoundingScientific()
2624 digits, in TestPluralsAndRoundingScientific()
2632 digits.set(299792458); in TestPluralsAndRoundingScientific()
2636 digits, in TestPluralsAndRoundingScientific()
2651 digits.set(-0.0000025300001); in TestPluralsAndRoundingScientific()
2655 digits, in TestPluralsAndRoundingScientific()
2661 digits.set(-0.0000025300006); in TestPluralsAndRoundingScientific()
2665 digits, in TestPluralsAndRoundingScientific()
2671 digits.set(-0.000025300006); in TestPluralsAndRoundingScientific()
2675 digits, in TestPluralsAndRoundingScientific()
2704 DigitList digits; in TestRoundingIncrement() local
2708 digits.set(3.7); in TestRoundingIncrement()
2712 digits, in TestRoundingIncrement()
2717 digits.set(-7.4); in TestRoundingIncrement()
2721 digits, in TestRoundingIncrement()
2726 digits.set(99.8); in TestRoundingIncrement()
2730 digits, in TestRoundingIncrement()
2736 digits.set(99.1); in TestRoundingIncrement()
2740 digits, in TestRoundingIncrement()
2745 digits.set(-639.65); in TestRoundingIncrement()
2749 digits, in TestRoundingIncrement()
2761 digits.set(-6396.5); in TestRoundingIncrement()
2765 digits, in TestRoundingIncrement()
2770 digits.set(-0.00092374); in TestRoundingIncrement()
2774 digits, in TestRoundingIncrement()
2780 digits.set(-0.00092374); in TestRoundingIncrement()
2784 digits, in TestRoundingIncrement()
2808 DigitList &digits, in verifyAffixesAndPadding() argument
2819 digits, in verifyAffixesAndPadding()
2859 DigitList digits; in verifyAffixesAndPaddingInt32() local
2860 digits.set(value); in verifyAffixesAndPaddingInt32()
2862 expected, aaf, digits, vf, optPluralRules, expectedAttributes); in verifyAffixesAndPaddingInt32()
2883 const DigitList &digits) { in verifyDigitList() argument
2891 DigitList dlCopy(digits); in verifyDigitList()
2909 const VisibleDigits &digits) { in verifyVisibleDigits() argument
2916 digits, in verifyVisibleDigits()
2920 if (digits.isNegative() != bNegative) { in verifyVisibleDigits()
2923 if (digits.isNaN() || digits.isInfinite()) { in verifyVisibleDigits()
2931 const VisibleDigitsWithExponent &digits) { in verifyVisibleDigitsWithExponent() argument
2937 digits, in verifyVisibleDigitsWithExponent()
2940 if (digits.isNegative() != bNegative) { in verifyVisibleDigitsWithExponent()
2943 if (digits.isNaN() || digits.isInfinite()) { in verifyVisibleDigitsWithExponent()
2951 const VisibleDigitsWithExponent &digits, in verifySciFormatter() argument
2957 formatter.countChar32(digits, options)); in verifySciFormatter()
2964 digits, in verifySciFormatter()
2999 const VisibleDigits &digits, in verifyDigitFormatter() argument
3006 formatter.countChar32(digits, grouping, options)); in verifyDigitFormatter()
3013 digits, in verifyDigitFormatter()
3055 int64_t expected, const VisibleDigits &digits) { in verifyIntValue() argument
3062 digits.getFixedDecimal( in verifyIntValue()
3069 double expected, const VisibleDigits &digits) { in verifySource() argument
3076 digits.getFixedDecimal( in verifySource()