/libcore/ojluni/src/main/java/java/math/ |
D | MathContext.java | 87 new MathContext(7, RoundingMode.HALF_EVEN); 97 new MathContext(16, RoundingMode.HALF_EVEN); 107 new MathContext(34, RoundingMode.HALF_EVEN);
|
D | RoundingMode.java | 328 HALF_EVEN(BigDecimal.ROUND_HALF_EVEN), enumConstant 387 case BigDecimal.ROUND_HALF_EVEN -> HALF_EVEN; in valueOf()
|
D | BigDecimal.java | 2249 case HALF_EVEN: in sqrt() 2270 MathContext mcTmp = new MathContext(tmpPrecision, RoundingMode.HALF_EVEN); in sqrt() 2428 case HALF_EVEN:
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 143 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()
|
D | OldBigDecimalConstructorsTest.java | 76 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()
|
D | BigDecimalTest.java | 118 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()
|
D | OldBigDecimalArithmeticTest.java | 637 RoundingMode rm = RoundingMode.HALF_EVEN; in test_DivideBigDecimalRoundingModeHALF_EVEN()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | SquareRootTests.java | 96 RoundingMode.HALF_UP, RoundingMode.HALF_DOWN, RoundingMode.HALF_EVEN); in oneDigitTests() 125 RoundingMode.HALF_UP, RoundingMode.HALF_DOWN, RoundingMode.HALF_EVEN); in twoDigitTests() 191 RoundingMode.HALF_UP, RoundingMode.HALF_DOWN, RoundingMode.HALF_EVEN in squareRootTwoTests() 308 MathContext mc = new MathContext(i, RoundingMode.HALF_EVEN); 332 for (RoundingMode rm : List.of(RoundingMode.HALF_EVEN, 368 for (RoundingMode rm : List.of(RoundingMode.HALF_EVEN, 562 MathContext mcTmp = new MathContext(loopPrecision, RoundingMode.HALF_EVEN); 664 case HALF_EVEN:
|
D | DivideMcTests.java | 5778 BigDecimal res1 = v1.divide(v2, new MathContext(mpc, RoundingMode.HALF_EVEN)); in mcDivideTests() 5779 ….divide(v2, new MathContext(128, RoundingMode.HALF_EVEN)).round(new MathContext(mpc, RoundingMode.… in mcDivideTests()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | RoundingModeTest.java | 33 …ed for ROUND_HALF_EVEN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN), RoundingMode.HALF_EVEN); in test_valueOfI()
|
D | BigDecimalScaleOperationsTest.java | 245 BigDecimal result = aNumber.setScale(newScale, RoundingMode.HALF_EVEN); in testSetScaleIntRoundingMode()
|
D | BigDecimalCompareTest.java | 79 RoundingMode rm = RoundingMode.HALF_EVEN; in testAbsMathContextPos()
|
D | BigDecimalArithmeticTest.java | 1141 RoundingMode rm = RoundingMode.HALF_EVEN; in testDivideBigDecimalScaleRoundingModeHALF_EVEN() 1279 RoundingMode rm = RoundingMode.HALF_EVEN; in testDivideBigDecimalScaleMathContextHALF_EVEN()
|
/libcore/ojluni/src/test/java/math/RoundingMode/ |
D | RoundingModeTests.java | 65 … Assert.assertEquals(RoundingMode.HALF_EVEN, RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN), in testRoundingMode()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4327 case HALF_EVEN: in convertRoundingMode() 4588 (RoundingMode) fields.get("roundingMode", RoundingMode.HALF_EVEN); in readObject() 4890 private RoundingMode roundingMode = RoundingMode.HALF_EVEN;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2200 decimalFormat.getRoundingMode(), RoundingMode.HALF_EVEN); in test_getRoundingMode() 2272 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode() 2384 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode() 2478 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode() 2587 decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN); in test_format_withRoundingMode()
|
/libcore/api/ |
D | current.txt | 5405 enum_constant public static final java.math.RoundingMode HALF_EVEN;
|