Home
last modified time | relevance | path

Searched refs:HALF_DOWN (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/math/
DRoundingMode.java69 HALF_DOWN(BigDecimal.ROUND_HALF_DOWN), enumConstant
109 return HALF_DOWN; in valueOf()
DBigDecimal.java2839 case HALF_DOWN: in roundingBehavior()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DMathContextTest.java32 MathContext mcIntRm6hd = new MathContext(6, RoundingMode.HALF_DOWN); in test_MathContextConstruction()
48 RoundingMode.HALF_DOWN, mcIntRm6hd.getRoundingMode() ); in test_MathContextConstruction()
DRoundingModeTest.java32 …ed for ROUND_HALF_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN), RoundingMode.HALF_DOWN); in test_valueOfI()
DBigDecimalArithmeticTest.java289 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()
DBigDecimalCompareTest.java63 RoundingMode rm = RoundingMode.HALF_DOWN; in testAbsMathContextNeg()
DBigDecimalTest.java926 RoundingMode rm = RoundingMode.HALF_DOWN; in testMathContextConstruction()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalTest.java125 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()
DOldBigDecimalConstructorsTest.java90 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()
DBigDecimalTest.java141 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()
DOldBigDecimalConvertTest.java158 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_DOWN); in test_ByteValueExactCharZero()
DOldBigDecimalArithmeticTest.java621 RoundingMode rm = RoundingMode.HALF_DOWN; in test_DivideBigDecimalRoundingModeHALF_DOWN()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2163 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/
DDecimalFormat.java1435 case HALF_DOWN: in convertRoundingMode()