From: Bruno Wolff III <bruno@wolff.to>
To: SZUCS Gábor <surrano@mailbox.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: numeric and float converts to int differently?
Date: Tue, 28 Oct 2003 14:31:19 -0600
Message-ID: <20031028203119.GB14260@wolff.to> (raw)
In-Reply-To: <0acb01c39d90$6d9d9080$0403a8c0@fejleszt4>
References: <87brs1gr4y.fsf@stark.dyndns.tv>
<0acb01c39d90$6d9d9080$0403a8c0@fejleszt4>
On Tue, Oct 28, 2003 at 21:16:53 +0100,
SZUCS Gábor <surrano@mailbox.hu> wrote:
>
> As Tom pointed out, it isn't a floating point failure -- it is how rounding
> float is implemented. I assume anything with less than 15 digits can be
> exactly represented as float.
No. It has to be a dyadic number. For example .3 will not be represented
exactly by a float.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, surrano@mailbox.hu
Subject: Re: numeric and float converts to int differently?
In-Reply-To: <20031028203119.GB14260@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox