Static subtraction method. @param a the first operand @param b the second operand @param result the result (can be the same as a or b for in-place operation) @throws NumericException if overflow occurs
(Decimal256 a, Decimal256 b, Decimal256 result)
| 738 | * @throws NumericException if overflow occurs |
| 739 | */ |
| 740 | public static void subtract(Decimal256 a, Decimal256 b, Decimal256 result) { |
| 741 | result.copyFrom(a); |
| 742 | result.subtract(b); |
| 743 | } |
| 744 | |
| 745 | public static @NotNull BigDecimal toBigDecimal(long hh, long hl, long lh, long ll, int scale) { |
| 746 | // Convert 256-bit value to BigInteger |