Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dnumber_rounding.cpp106 Rounder Rounder::maxDigits(int32_t maxSignificantDigits) { in maxDigits() argument
107 if (maxSignificantDigits >= 0 && maxSignificantDigits <= kMaxIntFracSig) { in maxDigits()
108 return constructSignificant(0, maxSignificantDigits); in maxDigits()
114 Rounder Rounder::minMaxDigits(int32_t minSignificantDigits, int32_t maxSignificantDigits) { in minMaxDigits() argument
115 if (minSignificantDigits >= 0 && maxSignificantDigits <= kMaxIntFracSig && in minMaxDigits()
116 minSignificantDigits <= maxSignificantDigits) { in minMaxDigits()
117 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxDigits()
149 Rounder FractionRounder::withMaxDigits(int32_t maxSignificantDigits) const { in withMaxDigits()
151 if (maxSignificantDigits >= 0 && maxSignificantDigits <= kMaxIntFracSig) { in withMaxDigits()
152 return constructFractionSignificant(*this, -1, maxSignificantDigits); in withMaxDigits()
Dprecision.cpp36 int32_t maxSignificantDigits = fSignificant.getMax(); in isRoundingRequired() local
38 if (maxSignificantDigits == INT32_MAX) { in isRoundingRequired()
41 int32_t limitDigit = upperExponent - maxSignificantDigits; in isRoundingRequired()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DFractionRounder.java68 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits() argument
69 if (maxSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in withMaxDigits()
70 return constructFractionSignificant(this, -1, maxSignificantDigits); in withMaxDigits()
DRounder.java224 public static Rounder maxDigits(int maxSignificantDigits) { in maxDigits() argument
225 if (maxSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in maxDigits()
226 return constructSignificant(0, maxSignificantDigits); in maxDigits()
245 public static Rounder minMaxDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxDigits() argument
246 if (minSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG in minMaxDigits()
247 && minSignificantDigits <= maxSignificantDigits) { in minMaxDigits()
248 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxDigits()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DFractionRounder.java69 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits() argument
70 if (maxSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in withMaxDigits()
71 return constructFractionSignificant(this, -1, maxSignificantDigits); in withMaxDigits()
DRounder.java232 public static Rounder maxDigits(int maxSignificantDigits) { in maxDigits() argument
233 if (maxSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG) { in maxDigits()
234 return constructSignificant(0, maxSignificantDigits); in maxDigits()
254 public static Rounder minMaxDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxDigits() argument
255 if (minSignificantDigits > 0 && maxSignificantDigits <= RoundingUtils.MAX_INT_FRAC_SIG in minMaxDigits()
256 && minSignificantDigits <= maxSignificantDigits) { in minMaxDigits()
257 return constructSignificant(minSignificantDigits, maxSignificantDigits); in minMaxDigits()
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h708 static DigitRounder maxDigits(int32_t maxSignificantDigits);
721 static DigitRounder minMaxDigits(int32_t minSignificantDigits, int32_t maxSignificantDigits);
921 Rounder withMaxDigits(int32_t maxSignificantDigits) const;
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java1306 maxFractionalDigits = maxSignificantDigits - dl.decimalAt; in getFixedDecimal()
3975 && maxSignificantDigits == other.maxSignificantDigits)
5235 return maxSignificantDigits; in getMaximumSignificantDigits()
5252 int max = Math.max(maxSignificantDigits, min); in setMinimumSignificantDigits()
5254 maxSignificantDigits = max; in setMinimumSignificantDigits()
5274 maxSignificantDigits = max; in setMaximumSignificantDigits()
5693 private int maxSignificantDigits = 6; local
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java1316 maxFractionalDigits = maxSignificantDigits - dl.decimalAt; in getFixedDecimal()
4035 && maxSignificantDigits == other.maxSignificantDigits)
5308 return maxSignificantDigits; in getMaximumSignificantDigits()
5326 int max = Math.max(maxSignificantDigits, min); in setMinimumSignificantDigits()
5328 maxSignificantDigits = max; in setMinimumSignificantDigits()
5349 maxSignificantDigits = max; in setMaximumSignificantDigits()
5784 private int maxSignificantDigits = 6; local