Rescale this Decimal256 in place @param newScale The new scale (must be >= current scale)
(int newScale)
| 1633 | * @param newScale The new scale (must be >= current scale) |
| 1634 | */ |
| 1635 | public void rescale(int newScale) { |
| 1636 | if (isNull()) { |
| 1637 | return; |
| 1638 | } |
| 1639 | |
| 1640 | if (newScale < scale) { |
| 1641 | round(newScale, RoundingMode.UNNECESSARY); |
| 1642 | return; |
| 1643 | } |
| 1644 | |
| 1645 | rescale0(newScale); |
| 1646 | } |
| 1647 | |
| 1648 | /** |
| 1649 | * Round to specified scale. |