Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DRoundingMode.java63 HALF_UP(BigDecimal.ROUND_HALF_UP), enumConstant
113 return HALF_UP; in valueOf()
DMathContext.java57 public static final MathContext UNLIMITED = new MathContext(0, RoundingMode.HALF_UP);
83 this(precision, RoundingMode.HALF_UP); in MathContext()
DBigDecimal.java2779 case HALF_UP: in roundingBehavior()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java34 …f failed for ROUND_HALF_UP", RoundingMode.valueOf(BigDecimal.ROUND_HALF_UP), RoundingMode.HALF_UP); in test_valueOfI()
DMathContextTest.java45 RoundingMode.HALF_UP, in test_MathContextConstruction()
DBigDecimalArithmeticTest.java376 MathContext mc = new MathContext(53, RoundingMode.HALF_UP); in testMultiplyMathContextDiffScalePosNeg()
411 MathContext mc = new MathContext(47, RoundingMode.HALF_UP); in testMultiplyMathContextDiffScaleNegPos()
471 MathContext mc = new MathContext(5, RoundingMode.HALF_UP); in testPowMathContext()
1103 RoundingMode rm = RoundingMode.HALF_UP; in testDivideBigDecimalScaleRoundingModeHALF_UP()
1239 RoundingMode rm = RoundingMode.HALF_UP; in testDivideBigDecimalScaleMathContextHALF_UP()
1500 RoundingMode rm = RoundingMode.HALF_UP; in testRemainderMathContextHALF_UP()
1555 RoundingMode rm = RoundingMode.HALF_UP; in testRoundMathContextHALF_UP()
1572 RoundingMode rm = RoundingMode.HALF_UP; in testRoundMathContextPrecision0()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalTest.java165 setScale2 = setScale1.setScale(3, RoundingMode.HALF_UP); in test_setScaleILjava_math_RoundingMode()
171 setScale2 = setNeg.setScale(0, RoundingMode.HALF_UP); in test_setScaleILjava_math_RoundingMode()
DOldBigDecimalConstructorsTest.java84 mc = new MathContext(34, RoundingMode.HALF_UP); in testConstrBigIntegerMathContext()
171 mc = new MathContext(34, RoundingMode.HALF_UP); in testConstrBigIntegerScaleMathContext()
231 mc = new MathContext(34, RoundingMode.HALF_UP); in testConstrBigIntegerScaleMathContext()
340 mc = new MathContext(34, RoundingMode.HALF_UP); in testConstrCharIntIntMathContext()
486 mc = new MathContext(11, RoundingMode.HALF_UP); in testConstrDoubleMathContext()
545 mc = new MathContext(11, RoundingMode.HALF_UP); in testConstrDoubleMathContext_AndroidFailure()
617 mc = new MathContext(16, RoundingMode.HALF_UP); in testConstrLongMathContext()
DOldBigDecimalConvertTest.java168 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_UP); in test_ByteValueExactStringZero()
270 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_UP); in test_ByteValueCharZero()
280 MathContext mc = new MathContext(iPresition, RoundingMode.HALF_UP); in test_ByteValueStringZero()
DBigDecimalTest.java96 assertEquals("1.20", a.abs(new MathContext(3,RoundingMode.HALF_UP)).toPlainString()); in test54580()
DOldBigDecimalArithmeticTest.java118 MathContext mc = new MathContext(5, RoundingMode.HALF_UP); in testPowMathContext()
603 RoundingMode rm = RoundingMode.HALF_UP; in test_DivideBigDecimalRoundingModeHALF_UP()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java44 df.setRoundingMode(RoundingMode.HALF_UP); in test_setMaximumFractionDigitsAffectsRoundingMode()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2244 decimalFormat.setRoundingMode(RoundingMode.HALF_UP); in test_format_withRoundingMode()
2356 decimalFormat.setRoundingMode(RoundingMode.HALF_UP); in test_format_withRoundingMode()
2450 decimalFormat.setRoundingMode(RoundingMode.HALF_UP); in test_format_withRoundingMode()
2495 decimalFormat.setRoundingMode(RoundingMode.HALF_UP); in test_format_withRoundingMode()
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java568 case HALF_UP: nativeRoundingMode = 6; break; in setRoundingMode()