OSDN Git Service

Alter scale selection for NUMERIC division and transcendental functions
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Oct 2002 19:21:26 +0000 (19:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Oct 2002 19:21:26 +0000 (19:21 +0000)
commitb813d143aec23aeb89dd9ebc73bfeda2dfc622fe
tree2b8b6b84f1d5ff81e98503768db91ea05ae5c394
parentc74c7e604cb739ce3c5821d88f8328b5b2a233c3
Alter scale selection for NUMERIC division and transcendental functions
so that precision of result is always at least as good as you'd get from
float8 arithmetic (ie, always at least 16 digits of accuracy).  Per
pg_hackers discussion a few days ago.
src/backend/utils/adt/numeric.c
src/include/utils/numeric.h
src/test/regress/expected/aggregates.out