Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DDecimalQuantityTest.java188 q0.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
189 q1.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
194 q0.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
195 q1.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
200 q0.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
201 q1.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
306 fq.roundToMagnitude(5, MATH_CONTEXT_HALF_EVEN); in testSwitchStorage()
383 fq.roundToMagnitude(-maxFrac, mc); in testUseApproximateDoubleWhenAble()
411 fq.roundToMagnitude(-2, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityBehaviorStandalone()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DDecimalQuantityTest.java185 q0.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
186 q1.roundToMagnitude(-1, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityRounding()
191 q0.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
192 q1.roundToMagnitude(-1, MATH_CONTEXT_CEILING); in testDecimalQuantityRounding()
197 q0.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
198 q1.roundToMagnitude(-1, MATH_CONTEXT_PRECISION); in testDecimalQuantityRounding()
303 fq.roundToMagnitude(5, MATH_CONTEXT_HALF_EVEN); in testSwitchStorage()
380 fq.roundToMagnitude(-maxFrac, mc); in testUseApproximateDoubleWhenAble()
408 fq.roundToMagnitude(-2, MATH_CONTEXT_HALF_EVEN); in testDecimalQuantityBehaviorStandalone()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DPrecision.java615 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply()
632 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply()
677 value.roundToMagnitude(roundingMag, mathContext); in apply()
DScale.java196 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DPrecision.java627 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply()
644 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply()
689 value.roundToMagnitude(roundingMag, mathContext); in apply()
DScale.java200 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
/external/icu/icu4c/source/i18n/
Dnumber_rounding.cpp347 value.roundToMagnitude( in apply()
357 value.roundToMagnitude( in apply()
386 value.roundToMagnitude(roundingMag, fRoundingMode, status); in apply()
Dnumber_decimalquantity.cpp183 dq.roundToMagnitude(0, roundingMode, status); in roundToIncrement()
190 roundToMagnitude(-maxFrac, roundingMode, status); in roundToIncrement()
609 void DecimalQuantity::roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& st… in roundToMagnitude() function in DecimalQuantity
692 roundToMagnitude(magnitude, roundingMode, status); // start over in roundToMagnitude()
Dnumber_decimalquantity.h94 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
Drbnf.cpp1126 copy.roundToMagnitude(0, number::impl::RoundingMode::UNUM_ROUND_HALFEVEN, status); in format()
1165 copy.roundToMagnitude(0, number::impl::RoundingMode::UNUM_ROUND_HALFEVEN, status); in format()
1289 digitList.roundToMagnitude( in format()
Dnfsubs.cpp1077 dl.roundToMagnitude(-20, UNUM_ROUND_HALFEVEN, status); // round to 20 fraction digits. in doSubstitution()
Dnumber_patternstring.cpp724 incrementQuantity.roundToMagnitude(0, kDefaultMode, status); in propertiesToPatternString()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_decimalquantity.cpp97 fq.roundToMagnitude(-2, RoundingMode::UNUM_ROUND_HALFEVEN, status); in testDecimalQuantityBehaviorStandalone()
116 fq.roundToMagnitude(5, RoundingMode::UNUM_ROUND_HALFEVEN, status); in testSwitchStorage()
305 fq.roundToMagnitude(-cas.maxFrac, cas.roundingMode, status); in testUseApproximateDoubleWhenAble()
Dnumfmtst.cpp8306 dq.roundToMagnitude(0, UNUM_ROUND_HALFEVEN, status); in Test10727_RoundingZero()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity.java75 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
DDecimalQuantity_AbstractBCD.java747 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
839 roundToMagnitude(magnitude, mathContext); // start over in roundToMagnitude()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity.java73 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() method
DDecimalQuantity_AbstractBCD.java745 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() method in DecimalQuantity_AbstractBCD
837 roundToMagnitude(magnitude, mathContext); // start over in roundToMagnitude()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java370 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java367 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) {