Re:9999999999999999.0 – 9999999999999998.0
by zeroimpl on Sunday January 06, 2019 @07:30PM
(#18841759)
In PostgreSQL, if you specify a decimal literal, it is assumed to be type NUMERIC (arbitrary precision) by default, as opposed to FLOAT or DOUBLE PRECISION.
If you stored your values in table rows as DOUBLE PRECISION, you would of course get the wrong answer.
I guess this comes down to most of them having implementations of arbitrary precision decimals.