Home
last modified time | relevance | path

Searched refs:DOWN (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DRoundingMode.java142 DOWN(BigDecimal.ROUND_DOWN), enumConstant
332 return DOWN; in valueOf()
DBigDecimal.java1796 RoundingMode.DOWN)); in divideToIntegralValue()
1798 quotient = quotient.setScale(0, RoundingMode.DOWN); in divideToIntegralValue()
1845 BigDecimal result = this.divide(divisor, new MathContext(mc.precision, RoundingMode.DOWN)); in divideToIntegralValue()
1865 result = result.setScale(0, RoundingMode.DOWN); in divideToIntegralValue()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConstructorsTest.java58 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()
DOldBigDecimalCompareTest.java38 mc = new MathContext(34, RoundingMode.DOWN); in testAbsMathContextNeg()
DOldBigDecimalTest.java102 setScale2 = setNeg.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode()
108 setScale2 = setScale1.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode()
DBigDecimalTest.java135 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()
DOldBigDecimalArithmeticTest.java349 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/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java109 nf.setRoundingMode(RoundingMode.DOWN); in testPercentageRounding()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2232 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
2344 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
2438 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
2558 decimalFormat.setRoundingMode(RoundingMode.DOWN); in test_format_withRoundingMode()
/libcore/ojluni/src/main/java/java/time/
DDuration.java978 return create(toBigDecimalSeconds().divide(BigDecimal.valueOf(divisor), RoundingMode.DOWN)); in dividedBy()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4132 case DOWN: in convertRoundingMode()