Searched refs:HALF_DOWN (Results 1 – 14 of 14) sorted by relevance
/libcore/luni/src/main/java/java/math/ |
D | RoundingMode.java | 69 HALF_DOWN(BigDecimal.ROUND_HALF_DOWN), enumConstant 109 return HALF_DOWN; in valueOf()
|
D | BigDecimal.java | 2839 case HALF_DOWN: in roundingBehavior()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | MathContextTest.java | 32 MathContext mcIntRm6hd = new MathContext(6, RoundingMode.HALF_DOWN); in test_MathContextConstruction() 48 RoundingMode.HALF_DOWN, mcIntRm6hd.getRoundingMode() ); in test_MathContextConstruction()
|
D | RoundingModeTest.java | 32 …ed for ROUND_HALF_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN), RoundingMode.HALF_DOWN); in test_valueOfI()
|
D | BigDecimalArithmeticTest.java | 289 MathContext mc = new MathContext(70, RoundingMode.HALF_DOWN); in testSubtractMathContextDiffScaleNegPos() 324 MathContext mc = new MathContext(40, RoundingMode.HALF_DOWN); in testMultiplyMathContextScalePosPos() 1123 RoundingMode rm = RoundingMode.HALF_DOWN; in testDivideBigDecimalScaleRoundingModeHALF_DOWN() 1259 RoundingMode rm = RoundingMode.HALF_DOWN; in testDivideBigDecimalScaleMathContextHALF_DOWN() 1520 RoundingMode rm = RoundingMode.HALF_DOWN; in testRemainderMathContextHALF_DOWN() 1538 RoundingMode rm = RoundingMode.HALF_DOWN; in testRoundMathContextHALF_DOWN()
|
D | BigDecimalCompareTest.java | 63 RoundingMode rm = RoundingMode.HALF_DOWN; in testAbsMathContextNeg()
|
D | BigDecimalTest.java | 926 RoundingMode rm = RoundingMode.HALF_DOWN; in testMathContextConstruction()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 125 setScale2 = setScale1.setScale(3, RoundingMode.HALF_DOWN); in test_setScaleILjava_math_RoundingMode() 131 setScale2 = setScale1.setScale(1, RoundingMode.HALF_DOWN); in test_setScaleILjava_math_RoundingMode() 136 RoundingMode.HALF_DOWN); in test_setScaleILjava_math_RoundingMode()
|
D | OldBigDecimalConstructorsTest.java | 90 mc = new MathContext(34, RoundingMode.HALF_DOWN); in testConstrBigIntegerMathContext() 177 mc = new MathContext(34, RoundingMode.HALF_DOWN); in testConstrBigIntegerScaleMathContext() 237 mc = new MathContext(34, RoundingMode.HALF_DOWN); in testConstrBigIntegerScaleMathContext() 346 mc = new MathContext(34, RoundingMode.HALF_DOWN); in testConstrCharIntIntMathContext() 497 mc = new MathContext(11, RoundingMode.HALF_DOWN); in testConstrDoubleMathContext() 551 mc = new MathContext(11, RoundingMode.HALF_DOWN); in testConstrDoubleMathContext_AndroidFailure() 623 mc = new MathContext(16, RoundingMode.HALF_DOWN); in testConstrLongMathContext()
|
D | BigDecimalTest.java | 141 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding() 151 checkDivide("0", Long.MIN_VALUE / 2, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding() 153 checkDivide("1", Long.MIN_VALUE / 2 - 1, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding()
|
D | OldBigDecimalConvertTest.java | 158 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_DOWN); in test_ByteValueExactCharZero()
|
D | OldBigDecimalArithmeticTest.java | 621 RoundingMode rm = RoundingMode.HALF_DOWN; in test_DivideBigDecimalRoundingModeHALF_DOWN()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2163 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_getRoundingMode() 2165 decimalFormat.getRoundingMode(), RoundingMode.HALF_DOWN); in test_getRoundingMode() 2187 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_format_withRoundingMode() 2299 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_format_withRoundingMode() 2393 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_format_withRoundingMode() 2508 decimalFormat.setRoundingMode(RoundingMode.HALF_DOWN); in test_format_withRoundingMode()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 1435 case HALF_DOWN: in convertRoundingMode()
|