Home
last modified time | relevance | path

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

123

/third_party/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 if (minFrac > roundingIncrement.scale()) { in oldToNew()
179 roundingIncrement = roundingIncrement.setScale(minFrac); in oldToNew()
181 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew()
DPrecision.java306 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
307 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
308 return constructIncrement(roundingIncrement); in increment()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java126 private transient BigDecimal roundingIncrement; field in DecimalFormatProperties
199 roundingIncrement = null; in _clear()
246 roundingIncrement = other.roundingIncrement; in _copyFrom()
294 eq = eq && _equalsHelper(roundingIncrement, other.roundingIncrement); in _equals()
358 hashCode ^= _hashCodeHelper(roundingIncrement); in _hashCode()
576 return roundingIncrement; in getRoundingIncrement()
1310 public DecimalFormatProperties setRoundingIncrement(BigDecimal roundingIncrement) { in setRoundingIncrement() argument
1311 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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/skia/third_party/externals/icu/source/i18n/
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_decimfmtprops.cpp74 roundingIncrement = 0.0; in clear()
106 eq = eq && roundingIncrement == other.roundingIncrement; in _equals()
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_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_rounding.cpp202 IncrementPrecision Precision::increment(double roundingIncrement) { in increment() argument
203 if (roundingIncrement > 0.0) { in increment()
204 return constructIncrement(roundingIncrement, 0); in increment()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/node/deps/icu-small/source/i18n/
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()
138 precision = Precision::increment(roundingIncrement).withMinFraction(minFrac); in oldToNew()
312 exportedProperties->roundingIncrement = increment_; in oldToNew()
Dnumber_decimfmtprops.cpp75 roundingIncrement = 0.0; in clear()
108 eq = eq && roundingIncrement == other.roundingIncrement; in _equals()
Dnumber_patternstring.cpp577 properties.roundingIncrement = 0.0; in patternInfoToProperties()
584 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
588 properties.roundingIncrement = 0.0; in patternInfoToProperties()
596 properties.roundingIncrement = 0.0; in patternInfoToProperties()
600 properties.roundingIncrement = 0.0; in patternInfoToProperties()
753 double increment = properties.roundingIncrement; in propertiesToPatternString()
/third_party/icu/icu4c/source/i18n/
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()
138 precision = Precision::increment(roundingIncrement).withMinFraction(minFrac); in oldToNew()
312 exportedProperties->roundingIncrement = increment_; in oldToNew()
Dnumber_decimfmtprops.cpp75 roundingIncrement = 0.0; in clear()
108 eq = eq && roundingIncrement == other.roundingIncrement; in _equals()
Dnumber_patternstring.cpp577 properties.roundingIncrement = 0.0; in patternInfoToProperties()
584 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
588 properties.roundingIncrement = 0.0; in patternInfoToProperties()
596 properties.roundingIncrement = 0.0; in patternInfoToProperties()
600 properties.roundingIncrement = 0.0; in patternInfoToProperties()
753 double increment = properties.roundingIncrement; in propertiesToPatternString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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.java292 public static Precision increment(BigDecimal roundingIncrement) { in increment() argument
293 if (roundingIncrement != null && roundingIncrement.compareTo(BigDecimal.ZERO) > 0) { in increment()
294 return constructIncrement(roundingIncrement); in increment()
/third_party/skia/third_party/externals/icu/source/samples/numfmt/
Dmain.cpp145 double roundingIncrement; in setNumberFormatCurrency_2_4() member
174 dnf->setRoundingIncrement(currencyMap[i].roundingIncrement); in setNumberFormatCurrency_2_4()
/third_party/icu/icu4c/source/samples/numfmt/
Dmain.cpp145 double roundingIncrement; in setNumberFormatCurrency_2_4() member
174 dnf->setRoundingIncrement(currencyMap[i].roundingIncrement); in setNumberFormatCurrency_2_4()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()
/third_party/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()

123