| 231 | } |
| 232 | |
| 233 | BasicDecimal128 Subtract(const BasicDecimalScalar128& x, const BasicDecimalScalar128& y, |
| 234 | int32_t out_precision, int32_t out_scale) { |
| 235 | return Add(x, {-y.value(), y.precision(), y.scale()}, out_precision, out_scale); |
| 236 | } |
| 237 | |
| 238 | // Multiply when the out_precision is 38, and there is no trimming of the scale i.e |
| 239 | // the intermediate value is the same as the final value. |