/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalArithmeticTest.java | 32 mc = new MathContext(17, RoundingMode.FLOOR); in testAddMathContextNonTrivial() 57 mc = new MathContext(17, RoundingMode.FLOOR); in testSubtractMathContextNonTrivial() 80 mc = new MathContext(17, RoundingMode.FLOOR); in testMultiplyMathContextNonTrivial() 128 mc = new MathContext(7, RoundingMode.FLOOR); in testPowMathContextNonTrivial() 135 mc = new MathContext(4, RoundingMode.FLOOR); in testPowMathContextNonTrivial() 158 mc = new MathContext(0, RoundingMode.FLOOR); in testPowMathContextNonTrivial() 167 mc = new MathContext(0, RoundingMode.FLOOR); in testPowMathContextNonTrivial() 193 mc = new MathContext(17, RoundingMode.FLOOR); in testDivideINonTrivial() 220 mc = new MathContext(17, RoundingMode.FLOOR); in testDivideIINonTrivial() 248 mc = new MathContext(17, RoundingMode.FLOOR); in testDivideScaleRoundingModeNonTrivial() [all …]
|
D | OldBigDecimalCompareTest.java | 41 mc = new MathContext(34, RoundingMode.FLOOR); in testAbsMathContextNeg() 57 MathContext mc = new MathContext(37, RoundingMode.FLOOR); in testNegateMathContextPositive()
|
D | OldBigDecimalConstructorsTest.java | 70 mc = new MathContext(34, RoundingMode.FLOOR); in testConstrBigIntegerMathContext() 157 mc = new MathContext(34, RoundingMode.FLOOR); in testConstrBigIntegerScaleMathContext() 217 mc = new MathContext(34, RoundingMode.FLOOR); in testConstrBigIntegerScaleMathContext() 257 mc = new MathContext(28, RoundingMode.FLOOR); in testConstrBigIntegerScaleMathContext() 268 mc = new MathContext(17, RoundingMode.FLOOR); in testConstrBigIntegerScaleMathContext_AndroidFailure() 326 mc = new MathContext(34, RoundingMode.FLOOR); in testConstrCharIntIntMathContext() 465 mc = new MathContext(8, RoundingMode.FLOOR); in testConstrDoubleMathContext() 603 mc = new MathContext(12, RoundingMode.FLOOR); in testConstrLongMathContext() 708 mc = new MathContext(7, RoundingMode.FLOOR); in testConstrStringMathContext()
|
D | OldBigDecimalTest.java | 114 setScale2 = setScale1.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode() 118 setScale2 = setNeg.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode()
|
D | BigDecimalTest.java | 69 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR)); in testRound() 137 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.FLOOR); in testDivideRounding()
|
/libcore/ojluni/src/main/java/java/math/ |
D | RoundingMode.java | 192 FLOOR(BigDecimal.ROUND_FLOOR), enumConstant 338 return FLOOR; in valueOf()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | RoundingModeTest.java | 31 …valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), RoundingMode.FLOOR); in test_valueOfI()
|
D | BigDecimalCompareTest.java | 374 RoundingMode rm = RoundingMode.FLOOR; in testPlusMathContextPositive() 434 RoundingMode rm = RoundingMode.FLOOR; in testNegateMathContextPositive()
|
D | BigDecimalArithmeticTest.java | 96 MathContext mc = new MathContext(5, RoundingMode.FLOOR); in testAddMathContextEqualScaleNegNeg() 1085 RoundingMode rm = RoundingMode.FLOOR; in testDivideBigDecimalScaleRoundingModeFLOOR() 1219 RoundingMode rm = RoundingMode.FLOOR; in testDivideBigDecimalScaleMathContextFLOOR()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | DivModTests.java | 228 BigDecimal resultD = xD.divide(yD, RoundingMode.FLOOR); in testLongFloorMod() 333 BigDecimal resultD = xD.divide(yD, RoundingMode.FLOOR); in testLongIntFloorMod()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2244 decimalFormat.setRoundingMode(RoundingMode.FLOOR); in test_format_withRoundingMode() 2356 decimalFormat.setRoundingMode(RoundingMode.FLOOR); in test_format_withRoundingMode() 2450 decimalFormat.setRoundingMode(RoundingMode.FLOOR); in test_format_withRoundingMode()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4136 case FLOOR: in convertRoundingMode()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2970 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format() 3043 BigDecimal fraction = valueBD.divide(rangeBD, 9, RoundingMode.FLOOR); in convertToFraction() 3068 … BigDecimal valueBD = fraction.multiply(rangeBD).setScale(0, RoundingMode.FLOOR).add(minBD); in convertFromFraction()
|
/libcore/api/ |
D | current.txt | 4840 enum_constant public static final java.math.RoundingMode FLOOR;
|