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
..
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-31 01:31:43 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-10 12:39:23 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-03-31 01:31:43 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2006-07-14 16:59:19 +00:00
2006-07-14 16:59:19 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-03-01 03:26:35 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2007-06-05 21:31:09 +00:00
2008-02-19 10:30:09 +00:00
2008-04-04 16:57:21 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-04-04 18:45:36 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-08 01:09:36 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-04-02 14:42:56 +00:00
2008-03-26 21:10:39 +00:00
2008-03-26 21:10:39 +00:00
2008-01-01 19:46:01 +00:00
2008-03-28 00:21:56 +00:00
2008-03-25 22:42:46 +00:00
2008-03-26 21:10:39 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-03-10 12:57:05 +00:00
2008-03-26 18:48:59 +00:00
2008-01-01 20:31:21 +00:00
2008-01-01 19:46:01 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-03-25 22:42:46 +00:00
2008-01-01 19:46:01 +00:00
2008-04-04 08:33:15 +00:00