Searched refs:newScale (Results 1 – 2 of 2) sorted by relevance
2016 int newScale = checkScale((long)scale * n); in pow() local2017 return new BigDecimal(this.inflated().pow(n), newScale); in pow()2388 public BigDecimal setScale(int newScale, RoundingMode roundingMode) { in setScale() argument2389 return setScale(newScale, roundingMode.oldMode); in setScale()2432 public BigDecimal setScale(int newScale, int roundingMode) { in setScale() argument2437 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 …]
620 int newScale = 7; in test_DivideBigDecimalRoundingModeHALF_DOWN() local625 BigDecimal result = aNumber.divide(bNumber, newScale, rm); in test_DivideBigDecimalRoundingModeHALF_DOWN()627 assertEquals("incorrect scale", newScale, result.scale()); in test_DivideBigDecimalRoundingModeHALF_DOWN()