Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java86 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
158 roundingIncrement = null; in _clear()
204 roundingIncrement = other.roundingIncrement; in _copyFrom()
251 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
314 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
528 return roundingIncrement; in getRoundingIncrement()
1238 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1239 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java171 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
175 temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
176 .multiply(roundingIncrement) in roundToIncrement()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java90 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
162 roundingIncrement = null; in _clear()
208 roundingIncrement = other.roundingIncrement; in _copyFrom()
255 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
318 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
532 return roundingIncrement; in getRoundingIncrement()
1242 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1243 this.roundingIncrement = roundingIncrement; in setRoundingIncrement()
DDecimalQuantity_AbstractBCD.java173 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument
177 temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement()
178 .multiply(roundingIncrement) in roundToIncrement()
/external/icu/icu4c/source/i18n/
Dnumber_decimfmtprops.cpp53 roundingIncrement = 0.0; in clear()
95 eq = eq && roundingIncrement == other.roundingIncrement; in operator ==()
Dnumber_patternstring.cpp505 properties.roundingIncrement = 0.0; in patternInfoToProperties()
513 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
517 properties.roundingIncrement = 0.0; in patternInfoToProperties()
525 properties.roundingIncrement = 0.0; in patternInfoToProperties()
529 properties.roundingIncrement = 0.0; in patternInfoToProperties()
681 double roundingInterval = properties.roundingIncrement; in propertiesToPatternString()
Dnumber_rounding.cpp123 IncrementRounder Rounder::increment(double roundingIncrement) { in increment() argument
124 if (roundingIncrement > 0.0) { in increment()
125 return constructIncrement(roundingIncrement, 0); in increment()
Dnumber_decimfmtprops.h85 double roundingIncrement; member
Dnumber_decimalquantity.h73 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode,
Dnumber_decimalquantity.cpp159 void DecimalQuantity::roundToIncrement(double roundingIncrement, RoundingMode roundingMode, in roundToIncrement() argument
164 temp /= roundingIncrement; in roundToIncrement()
168 temp *= roundingIncrement; in roundToIncrement()
/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/text/
DCurrencyMetaInfo.java353 public final int roundingIncrement; field in CurrencyMetaInfo.CurrencyDigits
360 public CurrencyDigits(int fractionDigits, int roundingIncrement) { in CurrencyDigits() argument
362 this.roundingIncrement = roundingIncrement; in CurrencyDigits()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DRounder.java277 public static Rounder increment(BigDecimal roundingIncrement) { in increment() argument
278 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
279 return constructIncrement(roundingIncrement); in increment()
DNumberPropertyMapper.java122 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
160 } else if (roundingIncrement != null) { in oldToNew()
161 rounding = Rounder.constructIncrement(roundingIncrement); in oldToNew()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DRounder.java287 public static Rounder increment(BigDecimal roundingIncrement) { in increment() argument
288 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
289 return constructIncrement(roundingIncrement); in increment()
DNumberPropertyMapper.java121 BigDecimal roundingIncrement = properties.getRoundingIncrement(); in oldToNew() local
159 } else if (roundingIncrement != null) { in oldToNew()
160 rounding = Rounder.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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCurrencyTest.java864 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
865 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
871 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
872 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.java867 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement() local
868 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement()
874 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage() local
875 assertEquals("Rounding increment not zero", 0.0, roundingIncrement, 0.0); in testGetRoundingIncrement_CurrencyUsage()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java373 if (tuple.roundingIncrement != null) {
476 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
477 properties.setRoundingIncrement(new BigDecimal(tuple.roundingIncrement.toString())); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java98 public Double roundingIncrement = null; field in DataDrivenNumberFormatTestData
321 roundingIncrement = Double.valueOf(value); in setRoundingIncrement()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java370 if (tuple.roundingIncrement != null) {
473 if (tuple.roundingIncrement != null) { in propertiesFromTuple()
474 properties.setRoundingIncrement(new BigDecimal(tuple.roundingIncrement.toString())); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java95 public Double roundingIncrement = null; field in DataDrivenNumberFormatTestData
318 roundingIncrement = Double.valueOf(value); in setRoundingIncrement()
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h105 double roundingIncrement; variable
Dnumberformattesttuple.cpp312 FIELD_INIT(roundingIncrement, &gDoubleOps),

12