Home
last modified time | relevance | path

Searched refs:maxSignificantDigits (Results 1 – 14 of 14) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/number/
DFractionPrecision.java68 public Precision withMaxDigits(int maxSignificantDigits) { in withMaxDigits() argument
69 if (maxSignificantDigits >= 1 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in withMaxDigits()
70 return constructFractionSignificant(this, -1, maxSignificantDigits); in withMaxDigits()
DPrecision.java234 public static Precision maxSignificantDigits(int maxSignificantDigits) { in maxSignificantDigits() argument
235 if (maxSignificantDigits >= 1 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in maxSignificantDigits()
236 return constructSignificant(1, maxSignificantDigits); in maxSignificantDigits()
256 …blic static Precision minMaxSignificantDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxSignificantDigits() argument
258 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG in minMaxSignificantDigits()
259 && minSignificantDigits <= maxSignificantDigits) { in minMaxSignificantDigits()
260 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxSignificantDigits()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DFractionPrecision.java70 public Precision withMaxDigits(int maxSignificantDigits) { in withMaxDigits() argument
71 if (maxSignificantDigits >= 1 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in withMaxDigits()
72 return constructFractionSignificant(this, -1, maxSignificantDigits); in withMaxDigits()
DPrecision.java243 public static Precision maxSignificantDigits(int maxSignificantDigits) { in maxSignificantDigits() method in Precision
244 if (maxSignificantDigits >= 1 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in maxSignificantDigits()
245 return constructSignificant(1, maxSignificantDigits); in maxSignificantDigits()
266 …blic static Precision minMaxSignificantDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxSignificantDigits() argument
268 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG in minMaxSignificantDigits()
269 && minSignificantDigits <= maxSignificantDigits) { in minMaxSignificantDigits()
270 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxSignificantDigits()
/external/icu/icu4c/source/i18n/
Dnumber_rounding.cpp143 Precision Precision::maxSignificantDigits(int32_t maxSignificantDigits) { in maxSignificantDigits() argument
144 if (maxSignificantDigits >= 1 && maxSignificantDigits <= kMaxIntFracSig) { in maxSignificantDigits()
145 return constructSignificant(1, maxSignificantDigits); in maxSignificantDigits()
151 …on Precision::minMaxSignificantDigits(int32_t minSignificantDigits, int32_t maxSignificantDigits) { in minMaxSignificantDigits() argument
152 if (minSignificantDigits >= 1 && maxSignificantDigits <= kMaxIntFracSig && in minMaxSignificantDigits()
153 minSignificantDigits <= maxSignificantDigits) { in minMaxSignificantDigits()
154 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxSignificantDigits()
181 Precision FractionPrecision::withMaxDigits(int32_t maxSignificantDigits) const { in withMaxDigits()
183 if (maxSignificantDigits >= 1 && maxSignificantDigits <= kMaxIntFracSig) { in withMaxDigits()
184 return constructFractionSignificant(*this, -1, maxSignificantDigits); in withMaxDigits()
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h597 static SignificantDigitsPrecision maxSignificantDigits(int32_t maxSignificantDigits);
611 int32_t maxSignificantDigits);
815 Precision withMaxDigits(int32_t maxSignificantDigits) const;
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp1025 NumberFormatter::with().precision(Precision::maxSignificantDigits(4)), in roundingFigures()
1061 NumberFormatter::with().precision(Precision::maxSignificantDigits(2)), in roundingFractionFigures()
2867 VALID_RANGE_ONEARG(precision, Precision::maxSignificantDigits, 1); in validRanges()
3042 .precision(Precision::maxSignificantDigits(5)) in toDecimalNumber()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java960 NumberFormatter.with().precision(Precision.maxSignificantDigits(4)), in roundingFigures()
995 NumberFormatter.with().precision(Precision.maxSignificantDigits(2)), in roundingFractionFigures()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java963 NumberFormatter.with().precision(Precision.maxSignificantDigits(4)), in roundingFigures()
998 NumberFormatter.with().precision(Precision.maxSignificantDigits(2)), in roundingFractionFigures()
/external/icu/icu4j/tools/build/
Dicu4j62.api3.gz12;ICU4J 62.1;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j65.api3.gz
Dicu4j64.api3.gz12;ICU4J 64.2;; 2ST@3.6;PB;NS;NF;NS; ...
Dicu4j66.api3.gz
Dicu4j63.api3.gz