Re: numeric precision when raising one numeric to another.

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>, Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: numeric precision when raising one numeric to another.
Date: 2005-05-31 03:48:27
Message-ID: 20050531034827.GA3645@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

On Mon, May 30, 2005 at 11:29:48PM -0400, Bruce Momjian wrote:

> test=> select 12345678901234567890 / 123;
> ?column?
> --------------------
> 100371373180768845
> (1 row)

Well, that's a bug, right?

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"Industry suffers from the managerial dogma that for the sake of stability
and continuity, the company should be independent of the competence of
individual employees." (E. Dijkstra)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-05-31 04:22:53 Re: numeric precision when raising one numeric to another.
Previous Message Bruce Momjian 2005-05-31 03:29:48 Re: numeric precision when raising one numeric to another.

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Stark 2005-05-31 04:14:59 Re: Backslash handling in strings
Previous Message Bruce Momjian 2005-05-31 03:29:48 Re: numeric precision when raising one numeric to another.