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

From Alvaro Herrera
Subject Re: Arbitrary precision modulo operation
Date
Msg-id 20040429022638.GD8757@dcc.uchile.cl
Whole thread Raw
In response to Re: Arbitrary precision modulo operation  ("Dann Corbit" <DCorbit@connx.com>)
List pgsql-general
On Wed, Apr 28, 2004 at 03:06:25PM -0700, Dann Corbit wrote:
> /*
> ** Hopefully, I am not annoying anyone with all of this.
> ** This is a brief demonstration of how Newton's division algorithm
> works:
> */

Well, have you looked at Postgres implementation?  I don't know if it's
Newton or not, but it certainly is not simple (I didn't take the time to
understand it).

Have a look at src/backend/utils/adt/numeric.c function div_var()

 Cc: list trimmed ...

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"¿Cómo puedes confiar en algo que pagas y que no ves,
y no confiar en algo que te dan y te lo muestran?" (Germán Poo)

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Postgre and Web Request
Next
From: Bruno Wolff III
Date:
Subject: Re: Arbitrary precision modulo operation