Decimal Functions and Operators
Operation | Result type precision | Result type scale |
---|---|---|
x + y and x - y | min(38, 1 + min(xs, ys) + min(xp - xs, yp - ys) ) | max(xs, ys) |
x * y | min(38, xp + yp) | xs + ys |
min(38, xp + ys + max(0, ys-xs) ) | max(xs, ys) | |
x % y | min(xp - xs, yp - ys) + max(xs, bs) | max(xs, ys) |