Divide two Decimal128 numbers and store the result in sink (a / b -> sink) Uses optimal precision calculation up to MAX_SCALE @param a First operand (dividend) @param b Second operand (divisor) @param sink Destination for the result @param scale Result scale @pa
(Decimal128 a, Decimal128 b, Decimal128 sink, int scale, RoundingMode roundingMode)
| 344 | * @param roundingMode Rounding Mode used to round the result |
| 345 | */ |
| 346 | public static void divide(Decimal128 a, Decimal128 b, Decimal128 sink, int scale, RoundingMode roundingMode) { |
| 347 | sink.copyFrom(a); |
| 348 | sink.divide(b, scale, roundingMode); |
| 349 | } |
| 350 | |
| 351 | /** |
| 352 | * Create a Decimal128 from a BigDecimal value. |