Home
last modified time | relevance | path

Searched refs:roundingIncrement (Results 1 – 25 of 51) sorted by relevance

123

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java125 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
197 roundingIncrement = null; in _clear()
243 roundingIncrement = other.roundingIncrement; in _copyFrom()
290 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
353 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
567 return roundingIncrement; in getRoundingIncrement()
1289 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1290 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java173 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
178 assert roundingIncrement.stripTrailingZeros().precision() != 1 in roundToIncrement()
179 || roundingIncrement.stripTrailingZeros().unscaledValue().intValue() != 5 in roundToIncrement()
180 || roundingIncrement.stripTrailingZeros().unscaledValue().intValue() != 1; in roundToIncrement()
182 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
183 .multiply(roundingIncrement) in roundToIncrement()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java130 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
202 roundingIncrement = null; in _clear()
248 roundingIncrement = other.roundingIncrement; in _copyFrom()
295 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
358 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
572 return roundingIncrement; in getRoundingIncrement()
1294 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1295 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java175 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
180 assert roundingIncrement.stripTrailingZeros().precision() != 1 in roundToIncrement()
181 || roundingIncrement.stripTrailingZeros().unscaledValue().intValue() != 5 in roundToIncrement()
182 || roundingIncrement.stripTrailingZeros().unscaledValue().intValue() != 1; in roundToIncrement()
184 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
185 .multiply(roundingIncrement) in roundToIncrement()
/external/icu/icu4c/source/i18n/
Dnumber_decimfmtprops.cpp74 roundingIncrement = 0.0; in clear()
106 eq = eq && roundingIncrement == other.roundingIncrement; in _equals()
Dnumber_mapper.cpp94 double roundingIncrement = properties.roundingIncrement; in oldToNew() local
133 } else if (roundingIncrement != 0.0) { in oldToNew()
134 if (PatternStringUtils::ignoreRoundingIncrement(roundingIncrement, maxFrac)) { in oldToNew()
137 precision = Precision::constructIncrement(roundingIncrement, minFrac); in oldToNew()
308 exportedProperties->roundingIncrement = increment_; in oldToNew()
Dnumber_decimalquantity.cpp184 void DecimalQuantity::roundToIncrement(double roundingIncrement, RoundingMode roundingMode, in roundToIncrement() argument
189 U_ASSERT(roundingIncrement != 0.01); in roundToIncrement()
190 U_ASSERT(roundingIncrement != 0.05); in roundToIncrement()
191 U_ASSERT(roundingIncrement != 0.1); in roundToIncrement()
192 U_ASSERT(roundingIncrement != 0.5); in roundToIncrement()
193 U_ASSERT(roundingIncrement != 1); in roundToIncrement()
194 U_ASSERT(roundingIncrement != 5); in roundToIncrement()
197 incrementDN.setTo(roundingIncrement, status); in roundToIncrement()
Dnumber_rounding.cpp196 IncrementPrecision Precision::increment(double roundingIncrement) { in increment() argument
197 if (roundingIncrement > 0.0) { in increment()
198 return constructIncrement(roundingIncrement, 0); in increment()
Dnumber_patternstring.cpp532 properties.roundingIncrement = 0.0; in patternInfoToProperties()
539 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
543 properties.roundingIncrement = 0.0; in patternInfoToProperties()
551 properties.roundingIncrement = 0.0; in patternInfoToProperties()
555 properties.roundingIncrement = 0.0; in patternInfoToProperties()
705 double roundingInterval = properties.roundingIncrement; in propertiesToPatternString()
Dnumber_decimfmtprops.h140 double roundingIncrement; member
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyMetaInfo.java355 public final int roundingIncrement; field in CurrencyMetaInfo.CurrencyDigits
362 public CurrencyDigits(int fractionDigits, int roundingIncrement) { in CurrencyDigits() argument
364 this.roundingIncrement = roundingIncrement; in CurrencyDigits()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyMetaInfo.java382 public final int roundingIncrement; field in CurrencyMetaInfo.CurrencyDigits
390 public CurrencyDigits(int fractionDigits, int roundingIncrement) { in CurrencyDigits() argument
392 this.roundingIncrement = roundingIncrement; in CurrencyDigits()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberPropertyMapper.java138 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
175 } else if (roundingIncrement != null) { in oldToNew()
176 if (PatternStringUtils.ignoreRoundingIncrement(roundingIncrement, maxFrac)) { in oldToNew()
179 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew()
DPrecision.java291 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
292 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
293 return constructIncrement(roundingIncrement); in increment()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberPropertyMapper.java137 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
174 } else if (roundingIncrement != null) { in oldToNew()
175 if (PatternStringUtils.ignoreRoundingIncrement(roundingIncrement, maxFrac)) { in oldToNew()
178 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew()
DPrecision.java302 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
303 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
304 return constructIncrement(roundingIncrement); in increment()
/external/icu/icu4c/source/samples/numfmt/
Dmain.cpp145 double roundingIncrement; in setNumberFormatCurrency_2_4() member
174 dnf->setRoundingIncrement(currencyMap[i].roundingIncrement); in setNumberFormatCurrency_2_4()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java221 if (tuple.roundingIncrement != null) {
222 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
394 if (tuple.roundingIncrement != null) {
501 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
502 properties.setRoundingIncrement(new BigDecimal(tuple.roundingIncrement.toString())); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java95 public Double roundingIncrement = null; field in DataDrivenNumberFormatTestData
320 roundingIncrement = Double.valueOf(value); in setRoundingIncrement()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java224 if (tuple.roundingIncrement != null) {
225 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
397 if (tuple.roundingIncrement != null) {
504 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
505 properties.setRoundingIncrement(new BigDecimal(tuple.roundingIncrement.toString())); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java98 public Double roundingIncrement = null; field in DataDrivenNumberFormatTestData
323 roundingIncrement = Double.valueOf(value); in setRoundingIncrement()
/external/cldr/tools/java/org/unicode/cldr/util/
DICUServiceBuilder.java484 double roundingIncrement;
491 this.roundingIncrement = currencyNumberInfo.getRoundingIncrement();
531 return roundingIncrement;
548 return roundingIncrement == that.roundingIncrement
556 return Objects.hash(roundingIncrement, fractDigits, symbol, displayName);
/external/icu/libicu/cts_headers/
Dnumber_decimfmtprops.h140 double roundingIncrement; member
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCurrencyTest.java958 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
959 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
965 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
966 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement_CurrencyUsage()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DCurrencyTest.java961 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
962 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
968 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
969 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement_CurrencyUsage()

123