/libcore/ojluni/src/main/java/java/math/ |
D | RoundingMode.java | 164 DOWN(BigDecimal.ROUND_DOWN), enumConstant 382 case BigDecimal.ROUND_DOWN -> DOWN; in valueOf()
|
D | BigDecimal.java | 1892 RoundingMode.DOWN)); in divideToIntegralValue() 1894 quotient = quotient.setScale(0, RoundingMode.DOWN); in divideToIntegralValue() 1941 BigDecimal result = this.divide(divisor, new MathContext(mc.precision, RoundingMode.DOWN)); in divideToIntegralValue() 1961 result = result.setScale(0, RoundingMode.DOWN); in divideToIntegralValue() 2280 (targetRm == RoundingMode.UNNECESSARY) ? RoundingMode.DOWN : targetRm; in sqrt() 2293 case DOWN: in sqrt() 2410 case DOWN:
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | SquareRootTests.java | 94 List.of(RoundingMode.UP, RoundingMode.DOWN, in oneDigitTests() 123 List.of(RoundingMode.UP, RoundingMode.DOWN, in twoDigitTests() 189 RoundingMode.UP, RoundingMode.DOWN, in squareRootTwoTests() 334 RoundingMode.DOWN )) { 572 (targetRm == RoundingMode.UNNECESSARY) ? RoundingMode.DOWN : targetRm; 641 case DOWN:
|
D | AddTests.java | 90 mc = new MathContext(2, RoundingMode.DOWN); in addWithoutException() 247 MathContext mc = new MathContext(1,RoundingMode.DOWN); in precisionConsistencyTest()
|
D | IntegralDivisionTests.java | 139 new MathContext(i, RoundingMode.DOWN)); in divideContextTestPrecs() 224 MathContext mc = new MathContext(9,RoundingMode.DOWN); in dividetoIntegralValueScalingTests()
|
D | ZeroScalingTests.java | 365 Assert.assertEquals(total.setScale(0, RoundingMode.DOWN), in setScaleDoesNotMutateTest() 366 total.setScale(0, RoundingMode.DOWN)); in setScaleDoesNotMutateTest()
|
D | DivideTests.java | 369 divide(one, RoundingMode.DOWN); in divideByOneTests()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalConstructorsTest.java | 58 mc = new MathContext(28, RoundingMode.DOWN); in testConstrBigIntegerMathContext() 145 mc = new MathContext(28, RoundingMode.DOWN); in testConstrBigIntegerScaleMathContext() 205 mc = new MathContext(28, RoundingMode.DOWN); in testConstrBigIntegerScaleMathContext() 314 mc = new MathContext(28, RoundingMode.DOWN); in testConstrCharIntIntMathContext() 402 mc = new MathContext(28, RoundingMode.DOWN); in testConstrCharMathContext() 453 mc = new MathContext(8, RoundingMode.DOWN); in testConstrDoubleMathContext() 591 mc = new MathContext(12, RoundingMode.DOWN); in testConstrLongMathContext() 682 mc = new MathContext(28, RoundingMode.DOWN); in testConstrStringMathContext()
|
D | OldBigDecimalTest.java | 102 setScale2 = setNeg.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode() 108 setScale2 = setScale1.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode()
|
D | OldBigDecimalCompareTest.java | 38 mc = new MathContext(34, RoundingMode.DOWN); in testAbsMathContextNeg()
|
D | BigDecimalTest.java | 135 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.DOWN); in testDivideRounding() 143 checkDivide("1", Long.MAX_VALUE, Long.MAX_VALUE / 2 + 1, 0, RoundingMode.DOWN); in testDivideRounding() 144 checkDivide("2", Long.MAX_VALUE, Long.MAX_VALUE / 2, 0, RoundingMode.DOWN); in testDivideRounding()
|
D | OldBigDecimalArithmeticTest.java | 349 mc = new MathContext(20, RoundingMode.DOWN); in testDivideToIntegralValueMathContextNonTrivial() 447 mc = new MathContext(13, RoundingMode.DOWN); in testRemainderMathContextNonTrivial() 489 mc = new MathContext(28, RoundingMode.DOWN); in testRoundNonTrivial() 558 RoundingMode rm = RoundingMode.DOWN; in test_DivideBigDecimalRoundingModeDOWN()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | RoundingModeTest.java | 30 …s("valueOf failed for ROUND_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_DOWN), RoundingMode.DOWN); in test_valueOfI()
|
D | BigDecimalArithmeticTest.java | 253 MathContext mc = new MathContext(17, RoundingMode.DOWN); in testSubtractMathContextDiffScalePosNeg() 1049 RoundingMode rm = RoundingMode.DOWN; in testDivideBigDecimalScaleRoundingModeDOWN() 1179 RoundingMode rm = RoundingMode.DOWN; in testDivideBigDecimalScaleMathContextDOWN() 1354 RoundingMode rm = RoundingMode.DOWN; in testDivideToIntegralValueMathContextDOWN() 1442 RoundingMode rm = RoundingMode.DOWN; in testDivideAndRemainderMathContextDOWN()
|
/libcore/ojluni/src/test/java/math/RoundingMode/ |
D | RoundingModeTests.java | 56 Assert.assertEquals(RoundingMode.DOWN, RoundingMode.valueOf(BigDecimal.ROUND_DOWN), in testRoundingMode()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | NumberFormatTest.java | 109 nf.setRoundingMode(RoundingMode.DOWN); in testPercentageRounding()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2248 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode() 2360 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode() 2454 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode() 2574 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 979 return create(toBigDecimalSeconds().divide(BigDecimal.valueOf(divisor), RoundingMode.DOWN)); in dividedBy()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4317 case DOWN: in convertRoundingMode()
|
/libcore/api/ |
D | current.txt | 5402 enum_constant public static final java.math.RoundingMode DOWN;
|