Re: float value is rounded

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: float value is rounded
Date: 2009-11-25 18:39:49
Message-ID: 22820.1259174389@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> I was surprised with rounding relative not big value. Is it correct?

You do realize float4 has only 6 decimal digits of precision?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2009-11-25 18:46:11 Re: float value is rounded
Previous Message Tom Lane 2009-11-25 18:34:53 Re: [PATCH 4/4] Add tests to dblink covering use of COPY TO FUNCTION