Searched refs:ROUND_UNNECESSARY (Results 1 – 5 of 5) sorted by relevance
/libcore/ojluni/src/main/java/java/math/ |
D | RoundingMode.java | 302 UNNECESSARY(BigDecimal.ROUND_UNNECESSARY); 349 case BigDecimal.ROUND_UNNECESSARY: in valueOf()
|
D | BigDecimal.java | 1560 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/ |
D | OldBigDecimalArithmeticTest.java | 203 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/ |
D | BigDecimalTest.java | 586 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/ |
D | DecimalFormat.java | 4145 return MathContext.ROUND_UNNECESSARY; in convertRoundingMode()
|