Home
last modified time | relevance | path

Searched refs:newScale (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java2016 int newScale = checkScale((long)scale * n); in pow() local
2017 return new BigDecimal(this.inflated().pow(n), newScale); in pow()
2388 public BigDecimal setScale(int newScale, RoundingMode roundingMode) { in setScale() argument
2389 return setScale(newScale, roundingMode.oldMode); in setScale()
2432 public BigDecimal setScale(int newScale, int roundingMode) { in setScale() argument
2437 if (newScale == oldScale) // easy case in setScale()
2440 return zeroValueOf(newScale); in setScale()
2443 if (newScale > oldScale) { in setScale()
2444 int raise = checkScale((long) newScale - oldScale); in setScale()
2446 return valueOf(rs,newScale); in setScale()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalArithmeticTest.java620 int newScale = 7; in test_DivideBigDecimalRoundingModeHALF_DOWN() local
625 BigDecimal result = aNumber.divide(bNumber, newScale, rm); in test_DivideBigDecimalRoundingModeHALF_DOWN()
627 assertEquals("incorrect scale", newScale, result.scale()); in test_DivideBigDecimalRoundingModeHALF_DOWN()