Home
last modified time | relevance | path

Searched refs:ROUND_DOWN (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DRoundingMode.java142 DOWN(BigDecimal.ROUND_DOWN),
331 case BigDecimal.ROUND_DOWN: in valueOf()
DBigDecimal.java2276 public final static int ROUND_DOWN = 1; field in BigDecimal
3028 return this.setScale(0, ROUND_DOWN).inflated();
4138 if (roundingMode == ROUND_DOWN && scale == preferredScale) in divideAndRound()
4160 if (roundingMode == ROUND_DOWN) in divideAndRound()
4184 case ROUND_DOWN: // Towards zero in commonNeedIncrement()
4894 if (roundingMode == ROUND_DOWN && scale == preferredScale) {
4916 if (roundingMode == ROUND_DOWN && scale == preferredScale)
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java30 …assertEquals("valueOf failed for ROUND_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_DOWN), Roundin… in test_valueOfI()
DBigDecimalTest.java228 divd3 = divd1.divide(divd2, BigDecimal.ROUND_DOWN); in test_divideLjava_math_BigDecimalI()
235 divd1.divide(divd2, BigDecimal.ROUND_DOWN); in test_divideLjava_math_BigDecimalI()
252 divd3 = divd1.divide(divd2, 0, BigDecimal.ROUND_DOWN); in test_divideLjava_math_BigDecimalII()
259 divd1.divide(divd2, 4, BigDecimal.ROUND_DOWN); in test_divideLjava_math_BigDecimalII()
624 setScale2 = setNeg.setScale(1, BigDecimal.ROUND_DOWN); in test_setScaleII()
630 setScale2 = setScale1.setScale(1, BigDecimal.ROUND_DOWN); in test_setScaleII()
DBigDecimalScaleOperationsTest.java162 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_DOWN); in testSetScaleRoundDown()
DBigDecimalArithmeticTest.java643 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_DOWN); in testDivideRoundDownNeg()
660 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_DOWN); in testDivideRoundDownPos()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4133 return MathContext.ROUND_DOWN; in convertRoundingMode()
/libcore/api/
Dcurrent.txt4756 field public static final int ROUND_DOWN = 1; // 0x1