Decimal Functions and Operators

    OperationResult type precisionResult type scale
    x + y and x - ymin(38, 1 + min(xs, ys) + min(xp - xs, yp - ys) )max(xs, ys)
    x * ymin(38, xp + yp)xs + ys
    min(38, xp + ys + max(0, ys-xs) )max(xs, ys)
    x % ymin(xp - xs, yp - ys) + max(xs, bs)max(xs, ys)