Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java123 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
195 roundingIncrement = null; in _clear()
241 roundingIncrement = other.roundingIncrement; in _copyFrom()
288 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
351 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
565 return roundingIncrement; in getRoundingIncrement()
1287 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1288 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java182 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
185 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
186 .multiply(roundingIncrement).round(mathContext); in roundToIncrement()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java118 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
190 roundingIncrement = null; in _clear()
236 roundingIncrement = other.roundingIncrement; in _copyFrom()
283 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
346 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
560 return roundingIncrement; in getRoundingIncrement()
1282 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1283 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java180 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
183 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
184 .multiply(roundingIncrement).round(mathContext); in roundToIncrement()
/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/icu4c/source/i18n/
Dnumber_decimfmtprops.cpp73 roundingIncrement = 0.0; in clear()
105 eq = eq && roundingIncrement == other.roundingIncrement; in _equals()
Dnumber_mapper.cpp104 double roundingIncrement = properties.roundingIncrement; in oldToNew() local
143 } else if (roundingIncrement != 0.0) { in oldToNew()
144 precision = Precision::constructIncrement(roundingIncrement, minFrac); in oldToNew()
311 exportedProperties->roundingIncrement = increment_; in oldToNew()
Dnumber_rounding.cpp152 IncrementPrecision Precision::increment(double roundingIncrement) { in increment() argument
153 if (roundingIncrement > 0.0) { in increment()
154 return constructIncrement(roundingIncrement, 0); in increment()
Dnumber_patternstring.cpp531 properties.roundingIncrement = 0.0; in patternInfoToProperties()
538 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
542 properties.roundingIncrement = 0.0; in patternInfoToProperties()
550 properties.roundingIncrement = 0.0; in patternInfoToProperties()
554 properties.roundingIncrement = 0.0; in patternInfoToProperties()
706 double roundingInterval = properties.roundingIncrement; in propertiesToPatternString()
Dnumber_decimfmtprops.h135 double roundingIncrement; member
Dnumber_decimalquantity.h81 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode,
/external/icu/android_icu4j/src/main/java/android/icu/number/
DPrecision.java331 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
332 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
333 return constructIncrement(roundingIncrement); in increment()
DNumberPropertyMapper.java143 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
182 } else if (roundingIncrement != null) { in oldToNew()
183 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DPrecision.java341 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
342 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
343 return constructIncrement(roundingIncrement); in increment()
DNumberPropertyMapper.java142 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
181 } else if (roundingIncrement != null) { in oldToNew()
182 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew()
/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/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java224 if (tuple.roundingIncrement != null) {
225 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
585 if (tuple.roundingIncrement != null) {
692 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
693 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java221 if (tuple.roundingIncrement != null) {
222 fmt.setRoundingIncrement(tuple.roundingIncrement.doubleValue());
582 if (tuple.roundingIncrement != null) {
689 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
690 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/cldr/tools/java/org/unicode/cldr/util/
DICUServiceBuilder.java475 double roundingIncrement;
482 this.roundingIncrement = currencyNumberInfo.getRoundingIncrement();
520 return roundingIncrement;
529 return roundingIncrement == that.roundingIncrement
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DCurrencyTest.java913 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
914 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
920 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
921 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement_CurrencyUsage()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCurrencyTest.java910 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
911 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
917 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
918 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement_CurrencyUsage()
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h105 double roundingIncrement; variable

12