Home
last modified time | relevance | path

Searched refs:HALF_EVEN (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/main/java/java/math/
DMathContext.java37 public static final MathContext DECIMAL128 = new MathContext(34, RoundingMode.HALF_EVEN);
44 public static final MathContext DECIMAL32 = new MathContext(7, RoundingMode.HALF_EVEN);
51 public static final MathContext DECIMAL64 = new MathContext(16, RoundingMode.HALF_EVEN);
DRoundingMode.java75 HALF_EVEN(BigDecimal.ROUND_HALF_EVEN), enumConstant
111 return HALF_EVEN; in valueOf()
DBigDecimal.java2842 case HALF_EVEN: in roundingBehavior()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalTest.java143 setScale2 = setScale1.setScale(4, RoundingMode.HALF_EVEN); in test_setScaleILjava_math_RoundingMode()
148 setScale2 = setNeg.setScale(2, RoundingMode.HALF_EVEN); in test_setScaleILjava_math_RoundingMode()
153 RoundingMode.HALF_EVEN); in test_setScaleILjava_math_RoundingMode()
158 RoundingMode.HALF_EVEN); in test_setScaleILjava_math_RoundingMode()
DOldBigDecimalConstructorsTest.java76 mc = new MathContext(34, RoundingMode.HALF_EVEN); in testConstrBigIntegerMathContext()
163 mc = new MathContext(34, RoundingMode.HALF_EVEN); in testConstrBigIntegerScaleMathContext()
223 mc = new MathContext(34, RoundingMode.HALF_EVEN); in testConstrBigIntegerScaleMathContext()
332 mc = new MathContext(34, RoundingMode.HALF_EVEN); in testConstrCharIntIntMathContext()
471 mc = new MathContext(11, RoundingMode.HALF_EVEN); in testConstrDoubleMathContext()
531 mc = new MathContext(11, RoundingMode.HALF_EVEN); in testConstrDoubleMathContext_AndroidFailure()
609 mc = new MathContext(16, RoundingMode.HALF_EVEN); in testConstrLongMathContext()
DBigDecimalTest.java118 zero = zero.setScale(2, RoundingMode.HALF_EVEN); in test191227()
121 other = other.setScale(2, RoundingMode.HALF_EVEN); in test191227()
139 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_EVEN); in testDivideRounding()
DOldBigDecimalArithmeticTest.java637 RoundingMode rm = RoundingMode.HALF_EVEN; in test_DivideBigDecimalRoundingModeHALF_EVEN()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java33 …ed for ROUND_HALF_EVEN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN), RoundingMode.HALF_EVEN); in test_valueOfI()
DBigDecimalScaleOperationsTest.java245 BigDecimal result = aNumber.setScale(newScale, RoundingMode.HALF_EVEN); in testSetScaleIntRoundingMode()
DBigDecimalCompareTest.java79 RoundingMode rm = RoundingMode.HALF_EVEN; in testAbsMathContextPos()
DBigDecimalArithmeticTest.java1141 RoundingMode rm = RoundingMode.HALF_EVEN; in testDivideBigDecimalScaleRoundingModeHALF_EVEN()
1279 RoundingMode rm = RoundingMode.HALF_EVEN; in testDivideBigDecimalScaleMathContextHALF_EVEN()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4142 case HALF_EVEN: in convertRoundingMode()
4396 (RoundingMode) fields.get("roundingMode", RoundingMode.HALF_EVEN); in readObject()
4697 private RoundingMode roundingMode = RoundingMode.HALF_EVEN;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2184 decimalFormat.getRoundingMode(), RoundingMode.HALF_EVEN); in test_getRoundingMode()
2256 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()
2368 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()
2462 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()
2571 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()