Home
last modified time | relevance | path

Searched refs:FLOOR (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalArithmeticTest.java32 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 …]
DOldBigDecimalCompareTest.java41 mc = new MathContext(34, RoundingMode.FLOOR); in testAbsMathContextNeg()
57 MathContext mc = new MathContext(37, RoundingMode.FLOOR); in testNegateMathContextPositive()
DOldBigDecimalConstructorsTest.java70 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()
DOldBigDecimalTest.java114 setScale2 = setScale1.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode()
118 setScale2 = setNeg.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode()
DBigDecimalTest.java69 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR)); in testRound()
137 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.FLOOR); in testDivideRounding()
/libcore/luni/src/main/java/java/math/
DRoundingMode.java57 FLOOR(BigDecimal.ROUND_FLOOR), enumConstant
107 return FLOOR; in valueOf()
DBigDecimal.java2829 case FLOOR: in roundingBehavior()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java31 …valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), RoundingMode.FLOOR); in test_valueOfI()
DBigDecimalCompareTest.java374 RoundingMode rm = RoundingMode.FLOOR; in testPlusMathContextPositive()
434 RoundingMode rm = RoundingMode.FLOOR; in testNegateMathContextPositive()
DBigDecimalArithmeticTest.java96 MathContext mc = new MathContext(5, RoundingMode.FLOOR); in testAddMathContextEqualScaleNegNeg()
1085 RoundingMode rm = RoundingMode.FLOOR; in testDivideBigDecimalScaleRoundingModeFLOOR()
1219 RoundingMode rm = RoundingMode.FLOOR; in testDivideBigDecimalScaleMathContextFLOOR()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2244 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/
DDecimalFormat.java4136 case FLOOR: in convertRoundingMode()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java2961 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format()
3034 BigDecimal fraction = valueBD.divide(rangeBD, 9, RoundingMode.FLOOR); in convertToFraction()
3059 … BigDecimal valueBD = fraction.multiply(rangeBD).setScale(0, RoundingMode.FLOOR).add(minBD); in convertFromFraction()