Lines Matching defs:setScale

174  * #setScale setScale} and {@link #round round}) return a
1172 return result.setScale(preferredScale); // can achieve target scale
1174 return result.setScale(result.scale() + precisionDiff);
1394 dividend = this.setScale(scale + divisor.scale, ROUND_UNNECESSARY);
1396 divisor = divisor.setScale(checkScale((long)this.scale - scale),
1628 return quotient.setScale(preferredScale, ROUND_UNNECESSARY);
1691 dividend = dividend.setScale(mcp + yscale, ROUND_UNNECESSARY);
1693 divisor = divisor.setScale(checkScale((long)xscale - mcp),
1725 return this.setScale(preferredScale, ROUND_UNNECESSARY);
1737 quotient = quotient.setScale(0, RoundingMode.DOWN);
1743 quotient = quotient.setScale(preferredScale, ROUND_UNNECESSARY);
1804 result = result.setScale(0, RoundingMode.DOWN);
1811 return result.setScale(result.scale() +
2319 * Instead, {@code setScale} returns an object with the proper
2334 public BigDecimal setScale(int newScale, RoundingMode roundingMode) {
2335 return setScale(newScale, roundingMode.oldMode);
2352 * Instead, {@code setScale} returns an object with the proper
2355 * <p>The new {@link #setScale(int, RoundingMode)} method should
2378 public BigDecimal setScale(int newScale, int roundingMode) {
2427 * versions of {@code setScale}, but saves the caller the trouble
2434 * <i>{@code X}</i>. Instead, {@code setScale} returns an
2445 * @see #setScale(int, int)
2446 * @see #setScale(int, RoundingMode)
2448 public BigDecimal setScale(int newScale) {
2449 return setScale(newScale, ROUND_UNNECESSARY);
2473 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num;
2495 return num.scale < 0 ? num.setScale(0, ROUND_UNNECESSARY) : num;
2792 * {@link #setScale(int,RoundingMode) setScale} method may be used for
2877 bd = bd.setScale(0);
2925 return this.setScale(0, ROUND_DOWN).inflate();
2940 return this.setScale(0, ROUND_UNNECESSARY).inflate();
2990 BigDecimal num = this.setScale(0, ROUND_UNNECESSARY);
3540 val[0] = val[0].setScale(val[1].scale, ROUND_UNNECESSARY);
3542 val[1] = val[1].setScale(val[0].scale, ROUND_UNNECESSARY);