Home
last modified time | relevance | path

Searched refs:ROUND_UNNECESSARY (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DRoundingMode.java302 UNNECESSARY(BigDecimal.ROUND_UNNECESSARY);
349 case BigDecimal.ROUND_UNNECESSARY: in valueOf()
DBigDecimal.java1560 if (roundingMode < ROUND_UP || roundingMode > ROUND_UNNECESSARY) in divide()
1704 return quotient.setScale(preferredScale, ROUND_UNNECESSARY); in divide()
1786 return this.setScale(preferredScale, ROUND_UNNECESSARY); in divideToIntegralValue()
1804 quotient = quotient.setScale(preferredScale, ROUND_UNNECESSARY); in divideToIntegralValue()
2333 public final static int ROUND_UNNECESSARY = 7; field in BigDecimal
2433 if (roundingMode < ROUND_UP || roundingMode > ROUND_UNNECESSARY) in setScale()
2515 return setScale(newScale, ROUND_UNNECESSARY); in setScale()
2539 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num; in movePointLeft()
2561 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num; in movePointRight()
3043 return this.setScale(0, ROUND_UNNECESSARY).inflated();
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalArithmeticTest.java203 res = a.divide(b, BigDecimal.ROUND_UNNECESSARY); in testDivideINonTrivial()
209 res = a.divide(b, BigDecimal.ROUND_UNNECESSARY); in testDivideINonTrivial()
228 res = a.divide(b, 1, BigDecimal.ROUND_UNNECESSARY); in testDivideIINonTrivial()
234 res = a.divide(b, 0, BigDecimal.ROUND_UNNECESSARY); in testDivideIINonTrivial()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalTest.java586 setScale2 = setScale1.setScale(2, BigDecimal.ROUND_UNNECESSARY); in test_setScaleI()
700 setScale1.setScale(3, BigDecimal.ROUND_UNNECESSARY); in test_setScaleII()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4145 return MathContext.ROUND_UNNECESSARY; in convertRoundingMode()