/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 195 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/ |
D | DecimalQuantityTest.java | 192 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/ |
D | number_rounding.cpp | 398 value.roundToMagnitude( in apply() 407 value.roundToMagnitude( in apply() 435 value.roundToMagnitude(roundingMag, fRoundingMode, status); in apply() 449 value.roundToMagnitude( in apply()
|
D | number_decimalquantity.h | 109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status); 418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
|
D | number_decimalquantity.cpp | 203 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()
|
D | rbnf.cpp | 1132 copy.roundToMagnitude(0, number::impl::RoundingMode::UNUM_ROUND_HALFEVEN, status); in format() 1256 digitList.roundToMagnitude( in format()
|
D | nfsubs.cpp | 1077 dl.roundToMagnitude(-20, UNUM_ROUND_HALFEVEN, status); // round to 20 fraction digits. in doSubstitution()
|
D | number_patternstring.cpp | 723 incrementQuantity.roundToMagnitude(0, kDefaultMode, status); in propertiesToPatternString()
|
/external/icu/libicu/cts_headers/ |
D | number_decimalquantity.h | 109 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/ |
D | Precision.java | 633 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()
|
D | Scale.java | 194 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | Precision.java | 622 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()
|
D | Scale.java | 189 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 750 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()
|
D | DecimalQuantity.java | 90 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 752 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()
|
D | DecimalQuantity.java | 92 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_decimalquantity.cpp | 106 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()
|
D | numfmtst.cpp | 8551 dq.roundToMagnitude(0, UNUM_ROUND_HALFEVEN, status); in Test10727_RoundingZero()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 385 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 382 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {
|