• Home
  • Raw
  • Download

Lines Matching full:precision

33 #include "precision.h"
806 FixedPrecision precision; in TestDigitFormatterDefaultCtor() local
808 precision.initVisibleDigits(246.801, digits, status); in TestDigitFormatterDefaultCtor()
836 FixedPrecision precision; in TestDigitFormatterMonetary() local
837 precision.initVisibleDigits(43560.02, visibleDigits, status); in TestDigitFormatterMonetary()
873 FixedPrecision precision; in TestDigitFormatter() local
874 precision.initVisibleDigits((int64_t) 8192, visibleDigits, status); in TestDigitFormatter()
921 precision.initVisibleDigits((int64_t) 43560, visibleDigits, status); in TestDigitFormatter()
935 FixedPrecision precision; in TestDigitFormatter() local
937 precision.initVisibleDigits( in TestDigitFormatter()
963 precision.fMin.setIntDigitCount(9); in TestDigitFormatter()
964 precision.fMin.setFracDigitCount(10); in TestDigitFormatter()
965 precision.initVisibleDigits( in TestDigitFormatter()
988 FixedPrecision precision; in TestDigitFormatter() local
991 precision.fMax.setIntDigitCount(0); in TestDigitFormatter()
992 precision.fMax.setFracDigitCount(0); in TestDigitFormatter()
993 precision.initVisibleDigits( in TestDigitFormatter()
1023 FixedPrecision precision; in TestDigitFormatter() local
1026 precision.fMax.setIntDigitCount(1); in TestDigitFormatter()
1027 precision.fMin.setFracDigitCount(1); in TestDigitFormatter()
1028 precision.initVisibleDigits( in TestDigitFormatter()
1051 ScientificPrecision precision; in TestSciFormatterDefaultCtor() local
1054 precision.initVisibleDigitsWithExponent( in TestSciFormatterDefaultCtor()
1066 precision.initVisibleDigitsWithExponent( in TestSciFormatterDefaultCtor()
1081 ScientificPrecision precision; in TestSciFormatter() local
1082 precision.fMantissa.fMin.setIntDigitCount(4); in TestSciFormatter()
1083 precision.fMantissa.fMax.setIntDigitCount(4); in TestSciFormatter()
1084 precision.fMantissa.fMin.setFracDigitCount(0); in TestSciFormatter()
1085 precision.fMantissa.fMax.setFracDigitCount(0); in TestSciFormatter()
1086 precision.fMinExponentDigits = 3; in TestSciFormatter()
1089 precision.initVisibleDigitsWithExponent( in TestSciFormatter()
1137 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1141 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1153 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1174 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1175 precision.fMax.setIntDigitCount(4); in TestValueFormatterIsFastFormattable()
1178 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1186 precision.fMax.setIntDigitCount(5); in TestValueFormatterIsFastFormattable()
1195 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1196 precision.fMin.setIntDigitCount(3); in TestValueFormatterIsFastFormattable()
1199 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1205 precision.fMin.setIntDigitCount(4); in TestValueFormatterIsFastFormattable()
1216 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1225 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1228 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1230 precision.fMin.setFracDigitCount(1); in TestValueFormatterIsFastFormattable()
1235 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1238 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1240 precision.fSignificant.setMin(1); in TestValueFormatterIsFastFormattable()
1245 FixedPrecision precision; in TestValueFormatterIsFastFormattable() local
1248 formatter, grouping, precision, options); in TestValueFormatterIsFastFormattable()
1250 precision.fRoundingIncrement.set(2.3); in TestValueFormatterIsFastFormattable()
1255 ScientificPrecision precision; in TestValueFormatterIsFastFormattable() local
1259 formatter, precision, options); in TestValueFormatterIsFastFormattable()
1679 FixedPrecision precision; in TestLargeIntValue() local
1684 precision.initVisibleDigits(U_INT64_MAX, digits, status)); in TestLargeIntValue()
1689 FixedPrecision precision; in TestLargeIntValue() local
1690 precision.fMax.setIntDigitCount(5); in TestLargeIntValue()
1695 precision.initVisibleDigits(U_INT64_MAX, digits, status)); in TestLargeIntValue()
1701 FixedPrecision precision; in TestLargeIntValue() local
1706 precision.initVisibleDigits(U_INT64_MIN, digits, status)); in TestLargeIntValue()
1711 FixedPrecision precision; in TestLargeIntValue() local
1712 precision.fMax.setIntDigitCount(5); in TestLargeIntValue()
1717 precision.initVisibleDigits(U_INT64_MIN, digits, status)); in TestLargeIntValue()
1728 FixedPrecision precision; in TestIntInitVisibleDigits() local
1732 precision.initVisibleDigits((int64_t) 13LL, digits, status)); in TestIntInitVisibleDigits()
1737 FixedPrecision precision; in TestIntInitVisibleDigits() local
1741 precision.initVisibleDigits((int64_t) -17LL, digits, status)); in TestIntInitVisibleDigits()
1746 FixedPrecision precision; in TestIntInitVisibleDigits() local
1750 precision.initVisibleDigits(U_INT64_MIN, digits, status)); in TestIntInitVisibleDigits()
1755 FixedPrecision precision; in TestIntInitVisibleDigits() local
1759 precision.initVisibleDigits(U_INT64_MAX, digits, status)); in TestIntInitVisibleDigits()
1764 FixedPrecision precision; in TestIntInitVisibleDigits() local
1768 precision.initVisibleDigits((int64_t) -31536000LL, digits, status)); in TestIntInitVisibleDigits()
1773 FixedPrecision precision; in TestIntInitVisibleDigits() local
1777 precision.initVisibleDigits((int64_t) 0LL, digits, status)); in TestIntInitVisibleDigits()
1782 FixedPrecision precision; in TestIntInitVisibleDigits() local
1783 precision.fMin.setIntDigitCount(4); in TestIntInitVisibleDigits()
1784 precision.fMin.setFracDigitCount(2); in TestIntInitVisibleDigits()
1788 precision.initVisibleDigits((int64_t) 0LL, digits, status)); in TestIntInitVisibleDigits()
1793 FixedPrecision precision; in TestIntInitVisibleDigits() local
1794 precision.fMin.setIntDigitCount(4); in TestIntInitVisibleDigits()
1795 precision.fMin.setFracDigitCount(2); in TestIntInitVisibleDigits()
1799 precision.initVisibleDigits((int64_t) 57LL, digits, status)); in TestIntInitVisibleDigits()
1804 FixedPrecision precision; in TestIntInitVisibleDigits() local
1805 precision.fMin.setIntDigitCount(4); in TestIntInitVisibleDigits()
1806 precision.fMin.setFracDigitCount(2); in TestIntInitVisibleDigits()
1810 precision.initVisibleDigits((int64_t) -57LL, digits, status)); in TestIntInitVisibleDigits()
1815 FixedPrecision precision; in TestIntInitVisibleDigits() local
1816 precision.fMax.setIntDigitCount(2); in TestIntInitVisibleDigits()
1817 precision.fMin.setFracDigitCount(1); in TestIntInitVisibleDigits()
1821 precision.initVisibleDigits((int64_t) 235LL, digits, status)); in TestIntInitVisibleDigits()
1826 FixedPrecision precision; in TestIntInitVisibleDigits() local
1827 precision.fMax.setIntDigitCount(2); in TestIntInitVisibleDigits()
1828 precision.fMin.setFracDigitCount(1); in TestIntInitVisibleDigits()
1829 precision.fFailIfOverMax = TRUE; in TestIntInitVisibleDigits()
1830 precision.initVisibleDigits((int64_t) 239LL, digits, status); in TestIntInitVisibleDigits()
1837 FixedPrecision precision; in TestIntInitVisibleDigits() local
1838 precision.fSignificant.setMin(5); in TestIntInitVisibleDigits()
1842 precision.initVisibleDigits((int64_t) 153LL, digits, status)); in TestIntInitVisibleDigits()
1847 FixedPrecision precision; in TestIntInitVisibleDigits() local
1848 precision.fSignificant.setMax(2); in TestIntInitVisibleDigits()
1849 precision.fExactOnly = TRUE; in TestIntInitVisibleDigits()
1850 precision.initVisibleDigits((int64_t) 154LL, digits, status); in TestIntInitVisibleDigits()
1857 FixedPrecision precision; in TestIntInitVisibleDigits() local
1858 precision.fSignificant.setMax(5); in TestIntInitVisibleDigits()
1862 precision.initVisibleDigits((int64_t) 150LL, digits, status)); in TestIntInitVisibleDigits()
1871 FixedPrecision precision; in TestIntInitVisibleDigitsToDigitList() local
1872 precision.fRoundingIncrement.set(7.3); in TestIntInitVisibleDigitsToDigitList()
1876 precision.initVisibleDigits((int64_t) -30LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1881 FixedPrecision precision; in TestIntInitVisibleDigitsToDigitList() local
1882 precision.fRoundingIncrement.set(7.3); in TestIntInitVisibleDigitsToDigitList()
1883 precision.fRoundingMode = DecimalFormat::kRoundFloor; in TestIntInitVisibleDigitsToDigitList()
1887 precision.initVisibleDigits((int64_t) -30LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1892 FixedPrecision precision; in TestIntInitVisibleDigitsToDigitList() local
1893 precision.fSignificant.setMax(3); in TestIntInitVisibleDigitsToDigitList()
1894 precision.fRoundingMode = DecimalFormat::kRoundCeiling; in TestIntInitVisibleDigitsToDigitList()
1898 precision.initVisibleDigits((int64_t) 1381LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1903 FixedPrecision precision; in TestIntInitVisibleDigitsToDigitList() local
1904 precision.fSignificant.setMax(1); in TestIntInitVisibleDigitsToDigitList()
1905 precision.fRoundingMode = DecimalFormat::kRoundFloor; in TestIntInitVisibleDigitsToDigitList()
1909 precision.initVisibleDigits((int64_t) -1381LL, digits, status)); in TestIntInitVisibleDigitsToDigitList()
1918 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1922 precision.initVisibleDigits(2.05, digits, status)); in TestDoubleInitVisibleDigits()
1927 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1931 precision.initVisibleDigits(3547.0, digits, status)); in TestDoubleInitVisibleDigits()
1936 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1937 precision.fMax.setFracDigitCount(2); in TestDoubleInitVisibleDigits()
1938 precision.fMax.setIntDigitCount(1); in TestDoubleInitVisibleDigits()
1939 precision.fFailIfOverMax = TRUE; in TestDoubleInitVisibleDigits()
1940 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1944 precision.initVisibleDigits(-2.05, digits, status)); in TestDoubleInitVisibleDigits()
1949 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1950 precision.fMax.setFracDigitCount(1); in TestDoubleInitVisibleDigits()
1951 precision.fMax.setIntDigitCount(1); in TestDoubleInitVisibleDigits()
1952 precision.fFailIfOverMax = TRUE; in TestDoubleInitVisibleDigits()
1953 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1954 precision.initVisibleDigits(-2.05, digits, status); in TestDoubleInitVisibleDigits()
1961 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1962 precision.fMax.setFracDigitCount(2); in TestDoubleInitVisibleDigits()
1963 precision.fMax.setIntDigitCount(0); in TestDoubleInitVisibleDigits()
1964 precision.fFailIfOverMax = TRUE; in TestDoubleInitVisibleDigits()
1965 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1966 precision.initVisibleDigits(-2.05, digits, status); in TestDoubleInitVisibleDigits()
1973 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1974 precision.fMin.setIntDigitCount(5); in TestDoubleInitVisibleDigits()
1975 precision.fMin.setFracDigitCount(2); in TestDoubleInitVisibleDigits()
1976 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1980 precision.initVisibleDigits(6245.3, digits, status)); in TestDoubleInitVisibleDigits()
1985 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1986 precision.fSignificant.setMax(5); in TestDoubleInitVisibleDigits()
1987 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1991 precision.initVisibleDigits(6245.3, digits, status)); in TestDoubleInitVisibleDigits()
1996 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
1997 precision.fSignificant.setMax(4); in TestDoubleInitVisibleDigits()
1998 precision.fExactOnly = TRUE; in TestDoubleInitVisibleDigits()
1999 precision.initVisibleDigits(6245.3, digits, status); in TestDoubleInitVisibleDigits()
2006 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
2007 precision.fMax.setIntDigitCount(3); in TestDoubleInitVisibleDigits()
2008 precision.fMin.setFracDigitCount(2); in TestDoubleInitVisibleDigits()
2012 precision.initVisibleDigits(2384.9, digits, status)); in TestDoubleInitVisibleDigits()
2017 FixedPrecision precision; in TestDoubleInitVisibleDigits() local
2018 precision.fMax.setIntDigitCount(3); in TestDoubleInitVisibleDigits()
2019 precision.fMin.setFracDigitCount(2); in TestDoubleInitVisibleDigits()
2020 precision.fFailIfOverMax = TRUE; in TestDoubleInitVisibleDigits()
2021 precision.initVisibleDigits(2384.9, digits, status); in TestDoubleInitVisibleDigits()
2032 FixedPrecision precision; in TestDoubleInitVisibleDigitsToDigitList() local
2038 precision.initVisibleDigits(-2.01, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2043 FixedPrecision precision; in TestDoubleInitVisibleDigitsToDigitList() local
2044 precision.fSignificant.setMax(3); in TestDoubleInitVisibleDigitsToDigitList()
2045 precision.fMin.setFracDigitCount(2); in TestDoubleInitVisibleDigitsToDigitList()
2049 precision.initVisibleDigits(2385.0, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2054 FixedPrecision precision; in TestDoubleInitVisibleDigitsToDigitList() local
2055 precision.fMax.setFracDigitCount(2); in TestDoubleInitVisibleDigitsToDigitList()
2059 precision.initVisibleDigits(-45.8251, digits, status)); in TestDoubleInitVisibleDigitsToDigitList()
2069 FixedPrecision precision; in TestDigitListInitVisibleDigits() local
2070 precision.fMax.setIntDigitCount(3); in TestDigitListInitVisibleDigits()
2071 precision.fMin.setFracDigitCount(2); in TestDigitListInitVisibleDigits()
2072 precision.fFailIfOverMax = TRUE; in TestDigitListInitVisibleDigits()
2074 precision.initVisibleDigits(dlist, digits, status); in TestDigitListInitVisibleDigits()
2081 FixedPrecision precision; in TestDigitListInitVisibleDigits() local
2082 precision.fSignificant.setMax(4); in TestDigitListInitVisibleDigits()
2083 precision.fExactOnly = TRUE; in TestDigitListInitVisibleDigits()
2085 precision.initVisibleDigits(dlist, digits, status); in TestDigitListInitVisibleDigits()
2096 FixedPrecision precision; in TestSpecialInitVisibleDigits() local
2097 precision.fSignificant.setMax(3); in TestSpecialInitVisibleDigits()
2098 precision.fMin.setFracDigitCount(2); in TestSpecialInitVisibleDigits()
2099 precision.initVisibleDigits(-uprv_getInfinity(), digits, status); in TestSpecialInitVisibleDigits()
2107 FixedPrecision precision; in TestSpecialInitVisibleDigits() local
2108 precision.initVisibleDigits(uprv_getInfinity(), digits, status); in TestSpecialInitVisibleDigits()
2116 FixedPrecision precision; in TestSpecialInitVisibleDigits() local
2117 precision.initVisibleDigits(uprv_getNaN(), digits, status); in TestSpecialInitVisibleDigits()
2127 ScientificPrecision precision; in TestVisibleDigitsWithExponent() local
2128 precision.initVisibleDigitsWithExponent(389.256, digits, status); in TestVisibleDigitsWithExponent()
2135 ScientificPrecision precision; in TestVisibleDigitsWithExponent() local
2136 precision.initVisibleDigitsWithExponent(-389.256, digits, status); in TestVisibleDigitsWithExponent()
2143 ScientificPrecision precision; in TestVisibleDigitsWithExponent() local
2144 precision.fMinExponentDigits = 3; in TestVisibleDigitsWithExponent()
2145 precision.fMantissa.fMin.setIntDigitCount(1); in TestVisibleDigitsWithExponent()
2146 precision.fMantissa.fMax.setIntDigitCount(3); in TestVisibleDigitsWithExponent()
2147 precision.initVisibleDigitsWithExponent(12345.67, digits, status); in TestVisibleDigitsWithExponent()
2154 ScientificPrecision precision; in TestVisibleDigitsWithExponent() local
2155 precision.fMantissa.fRoundingIncrement.set(0.073); in TestVisibleDigitsWithExponent()
2156 precision.fMantissa.fMin.setIntDigitCount(2); in TestVisibleDigitsWithExponent()
2157 precision.fMantissa.fMax.setIntDigitCount(2); in TestVisibleDigitsWithExponent()
2158 precision.initVisibleDigitsWithExponent(999.74, digits, status); in TestVisibleDigitsWithExponent()
2174 FixedPrecision precision; in TestDigitAffixesAndPadding() local
2181 precision, in TestDigitAffixesAndPadding()
2345 precision.fMin.setFracDigitCount(2); in TestDigitAffixesAndPadding()
2371 FixedPrecision precision; in TestPluralsAndRounding() local
2372 precision.fSignificant.setMax(3); in TestPluralsAndRounding()
2378 precision, in TestPluralsAndRounding()
2426 precision.fSignificant.setMin(2); in TestPluralsAndRounding()
2447 precision.fSignificant.setMin(0); in TestPluralsAndRounding()
2459 precision.fSignificant.setMax(0); in TestPluralsAndRounding()
2460 precision.fMax.setFracDigitCount(4); in TestPluralsAndRounding()
2482 ScientificPrecision precision; in TestPluralsAndRoundingScientific() local
2483 precision.fMantissa.fSignificant.setMax(4); in TestPluralsAndRoundingScientific()
2488 precision, in TestPluralsAndRoundingScientific()
2554 precision.fMantissa.fSignificant.setMin(4); in TestPluralsAndRoundingScientific()
2556 precision.fMinExponentDigits = 3; in TestPluralsAndRoundingScientific()
2575 precision.fMantissa.fMax.setIntDigitCount(3); in TestPluralsAndRoundingScientific()
2612 precision.fMantissa.fMax.setFracDigitCount(1); in TestPluralsAndRoundingScientific()
2631 precision.fMantissa.fMax.setIntDigitCount(1); in TestPluralsAndRoundingScientific()
2632 precision.fMantissa.fMax.setFracDigitCount(2); in TestPluralsAndRoundingScientific()
2644 precision.fMantissa.fSignificant.setMin(0); in TestPluralsAndRoundingScientific()
2645 precision.fMantissa.fSignificant.setMax(0); in TestPluralsAndRoundingScientific()
2648 precision.fMantissa.fMin.setFracDigitCount(2); in TestPluralsAndRoundingScientific()
2649 precision.fMantissa.fMax.setFracDigitCount(4); in TestPluralsAndRoundingScientific()
2650 precision.fMantissa.fMin.setIntDigitCount(2); in TestPluralsAndRoundingScientific()
2651 precision.fMantissa.fMax.setIntDigitCount(3); in TestPluralsAndRoundingScientific()
2693 ScientificPrecision precision; in TestRoundingIncrement() local
2695 precision.fMantissa.fRoundingIncrement.set(0.25); in TestRoundingIncrement()
2696 precision.fMantissa.fSignificant.setMax(4); in TestRoundingIncrement()
2704 precision.fMantissa, in TestRoundingIncrement()
2736 precision.fMantissa.fMin.setFracDigitCount(2); in TestRoundingIncrement()
2756 precision.fMantissa.fMin.setIntDigitCount(2); in TestRoundingIncrement()
2760 precision, in TestRoundingIncrement()
2780 precision.fMantissa.fMax.setIntDigitCount(3); in TestRoundingIncrement()
2889 FixedPrecision precision; in verifyDigitList() local
2890 precision.fMin.setIntDigitCount(0); in verifyDigitList()
2894 precision.initVisibleDigits( in verifyDigitList()