Set this Decimal256 from a long value with the specified scale. @param value the long value @param scale the desired scale
(long value, int scale)
| 1503 | * @param scale the desired scale |
| 1504 | */ |
| 1505 | public void ofLong(long value, int scale) { |
| 1506 | validateScale(scale); |
| 1507 | |
| 1508 | this.scale = scale; |
| 1509 | this.ll = value; |
| 1510 | final long s = value < 0 ? -1L : 0L; |
| 1511 | this.lh = s; |
| 1512 | this.hl = s; |
| 1513 | this.hh = s; |
| 1514 | } |
| 1515 | |
| 1516 | /** |
| 1517 | * Set this Decimal256 to the null value. |