Re: Precision problems with float8

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Gabriel Fernandez <gabi(at)unica(dot)edu>
Cc: PostgreSQL-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Precision problems with float8
Date: 2001-11-09 16:23:24
Message-ID: 20011109082048.J57927-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 9 Nov 2001, Gabriel Fernandez wrote:

> Hi,
>
> I send a week ago a mail and I have not get any answer.
>
> The main thing I want to know is: If I use the numeric type instead of
> float8 will it result in a slower overall performance or it won't be
> significantly different ?

Yes, it's almost certainly slower than float8, but I don't know how
significant it is (especially since you're already doing numeric<->
double precision conversions I think)

> (Of course, the initial 9.38 is the result of a previous calculation,
> rounded with two decimals places, but the only thing you can see in the
> value of the field is "9.38" ).
>
> Does anyone know the reason ?

Can you send a test script that generates a broken row? I'm not sure
how to diagnose it from the information given.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-11-09 16:42:56 Re: General question about DBI/DBD
Previous Message qradius 2001-11-09 16:21:57 How to view the functions that exists