Nuno Sousa <nunofgs@gmail.com> writes: > I've run into an interesting issue when trying to do numeric math. I > expected the following to return the same number of decimal digits in the > fractional part:
so I find it unsurprising that the outputs do too. Now the fact that the output scales differ by 4 not 1 is indeed an implementation artifact. It stems from the numeric type working with base-10000 digits, so that scales that are multiples of 4 are most efficient, hence division will always choose such an output scale.