Change float8-to-int8 conversion to round to nearest, rather than
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2001 22:50:26 +0000 (22:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Jan 2001 22:50:26 +0000 (22:50 +0000)
commitc933e8e2e97b0d42e081ddd979dd4f09a525642c
tree7b917070aecb699618ecbb52cf6a9177d65207ca
parent0e9035850ca0738ca98ea7a783c1d632e5cd98b0
Change float8-to-int8 conversion to round to nearest, rather than
truncating to integer.  Remove regress test that checks whether
4567890123456789 can be converted to float without loss; since that's
52 bits, it's on the hairy edge of failing with IEEE float8s, and indeed
rint seems to give platform-dependent results for it.
src/backend/utils/adt/int8.c
src/test/regress/expected/int8-exp-three-digits.out
src/test/regress/expected/int8.out
src/test/regress/sql/int8.sql