postgresql/src/test
Tom Lane a0fad9762a Re-implement division for numeric values using the traditional "schoolbook"
algorithm.  This is a good deal slower than our old roundoff-error-prone
code for long inputs, so we keep the old code for use in the transcendental
functions, where everything is approximate anyway.  Also create a
user-accessible function div(numeric, numeric) to provide access to the
exact result of trunc(x/y) --- since the regular numeric / operator will
round off its result, simply computing that expression in SQL doesn't
reliably give the desired answer.  This fixes bug #3387 and various related
corner cases, and improves the usefulness of PG for high-precision integer
arithmetic.
2008-04-04 18:45:36 +00:00
..
bench Catch all errors in for and while loops in makefiles. Don't ignore any 2008-03-18 16:24:50 +00:00
examples Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
locale More README src cleanups. 2008-03-21 13:23:29 +00:00
mb More README src cleanups. 2008-03-21 13:23:29 +00:00
performance Add CVS tag lines to files that were lacking them. 2006-03-11 04:38:42 +00:00
regress Re-implement division for numeric values using the traditional "schoolbook" 2008-04-04 18:45:36 +00:00
thread More README src cleanups. 2008-03-21 13:23:29 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00