Home
last modified time | relevance | path

Searched refs:roundToMagnitude (Results 1 – 21 of 21) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DDecimalQuantityTest.java195 q0.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
196 q1.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
201 q0.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
202 q1.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
207 q0.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
208 q1.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
317 fq.roundToMagnitude(5, MATH_CONTEXT_HALF_EVEN); in testSwitchStorage()
403 fq.roundToMagnitude(-maxFrac, mc); in testUseApproximateDoubleWhenAble()
432 fq.roundToMagnitude(-2, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityBehaviorStandalone()
529 dq.roundToMagnitude(-2, RoundingUtils.mathContextUnlimited(RoundingMode.FLOOR)); in testMaxDigits()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DDecimalQuantityTest.java192 q0.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
193 q1.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
198 q0.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
199 q1.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
204 q0.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
205 q1.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
314 fq.roundToMagnitude(5, MATH_CONTEXT_HALF_EVEN); in testSwitchStorage()
400 fq.roundToMagnitude(-maxFrac, mc); in testUseApproximateDoubleWhenAble()
429 fq.roundToMagnitude(-2, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityBehaviorStandalone()
526 dq.roundToMagnitude(-2, RoundingUtils.mathContextUnlimited(RoundingMode.FLOOR)); in testMaxDigits()
/external/icu/icu4c/source/i18n/
Dnumber_rounding.cpp398 value.roundToMagnitude( in apply()
407 value.roundToMagnitude( in apply()
435 value.roundToMagnitude(roundingMag, fRoundingMode, status); in apply()
449 value.roundToMagnitude( in apply()
Dnumber_decimalquantity.h109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
Dnumber_decimalquantity.cpp203 roundToMagnitude(0, roundingMode, status); in roundToIncrement()
658 roundToMagnitude(magnitude, roundingMode, true, status); in roundToNickel()
661 void DecimalQuantity::roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& st… in roundToMagnitude() function in DecimalQuantity
662 roundToMagnitude(magnitude, roundingMode, false, status); in roundToMagnitude()
665 void DecimalQuantity::roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, U… in roundToMagnitude() function in DecimalQuantity
785 roundToMagnitude(magnitude, roundingMode, nickel, status); // start over in roundToMagnitude()
Drbnf.cpp1132 copy.roundToMagnitude(0, number::impl::RoundingMode::UNUM_ROUND_HALFEVEN, status); in format()
1256 digitList.roundToMagnitude( in format()
Dnfsubs.cpp1077 dl.roundToMagnitude(-20, UNUM_ROUND_HALFEVEN, status); // round to 20 fraction digits. in doSubstitution()
Dnumber_patternstring.cpp723 incrementQuantity.roundToMagnitude(0, kDefaultMode, status); in propertiesToPatternString()
/external/icu/libicu/cts_headers/
Dnumber_decimalquantity.h109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DPrecision.java633 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply()
656 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply()
707 value.roundToMagnitude(roundingMag, mathContext); in apply()
760 value.roundToMagnitude(-maxFrac, mathContext); in apply()
DScale.java194 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DPrecision.java622 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply()
645 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply()
696 value.roundToMagnitude(roundingMag, mathContext); in apply()
749 value.roundToMagnitude(-maxFrac, mathContext); in apply()
DScale.java189 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java750 roundToMagnitude(magnitude, mathContext, true); in roundToNickel()
754 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
755 roundToMagnitude(magnitude, mathContext, false); in roundToMagnitude()
758 private void roundToMagnitude(int magnitude, MathContext mathContext, boolean nickel) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
885 roundToMagnitude(magnitude, mathContext, nickel); // start over in roundToMagnitude()
DDecimalQuantity.java90 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java752 roundToMagnitude(magnitude, mathContext, true); in roundToNickel()
756 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
757 roundToMagnitude(magnitude, mathContext, false); in roundToMagnitude()
760 private void roundToMagnitude(int magnitude, MathContext mathContext, boolean nickel) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
887 roundToMagnitude(magnitude, mathContext, nickel); // start over in roundToMagnitude()
DDecimalQuantity.java92 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
/external/icu/icu4c/source/test/intltest/
Dnumbertest_decimalquantity.cpp106 fq.roundToMagnitude(-2, RoundingMode::UNUM_ROUND_HALFEVEN, status); in testDecimalQuantityBehaviorStandalone()
125 fq.roundToMagnitude(5, RoundingMode::UNUM_ROUND_HALFEVEN, status); in testSwitchStorage()
323 fq.roundToMagnitude(-cas.maxFrac, cas.roundingMode, status); in testUseApproximateDoubleWhenAble()
387 dq.roundToMagnitude(-2, UNUM_ROUND_FLOOR, status); in testMaxDigits()
Dnumfmtst.cpp8551 dq.roundToMagnitude(0, UNUM_ROUND_HALFEVEN, status); in Test10727_RoundingZero()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java385 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java382 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {