Static addition 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)
| 279 | * @throws NumericException if overflow occurs |
| 280 | */ |
| 281 | public static void add(Decimal256 a, Decimal256 b, Decimal256 result) { |
| 282 | result.copyFrom(a); |
| 283 | result.add(b); |
| 284 | } |
| 285 | |
| 286 | /** |
| 287 | * Compares 2 Decimal256, ignoring scaling. |