Re: Arbitrary precision modulo operation - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Arbitrary precision modulo operation
Date
Msg-id 20040427015556.GE2206@dcc.uchile.cl
Whole thread Raw
In response to Re: Arbitrary precision modulo operation  ("Dann Corbit" <DCorbit@connx.com>)
Responses Re: Arbitrary precision modulo operation
List pgsql-general
On Mon, Apr 26, 2004 at 12:48:45PM -0700, Dann Corbit wrote:
> Maple output:
> y := 123456789012345678901234567890 mod 123;
>                                y := 117

PgSQL 7.3.6 gives the right answer (117), 7.4 gets it wrong (-6). Most
likely a bug was introduced when NUMERIC was rewritten.  Strange it
hasn't been noticed before.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Vivir y dejar de vivir son soluciones imaginarias.
La existencia está en otra parte" (Andre Breton)

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: 7.3.4 on Linux: UPDATE .. foo=foo+1 degrades massivly
Next
From: David Garamond
Date:
Subject: Re: shadowing (like IB/Firebird)