From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Romanenko Mikhail" <mikhail(at)angg(dot)ru> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2 |
Date: | 2000-08-07 15:57:18 |
Message-ID: | 3.0.5.32.20000808015718.0281ad70@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
At 11:35 7/08/00 -0400, Tom Lane wrote:
>
>Perhaps the old way of considering equality only to float accuracy
>is more useful, even though it opens us up to problems like overflow
>errors in "float4var = 1e100". Comments anyone?
>
The following frightened me a little:
pjw=# select float4(10.1);
float4
--------
10.1
(1 row)
pjw=# select float8(float4(10.1));
float8
------------------
10.1000003814697
(1 row)
I would have expected the latter to be at worst 10.10000000000000 +/-
.00000000000001.
Am I missing something?
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 2000-08-07 16:04:54 | Re: [HACKERS] Re: Trouble with float4 after upgrading from 6.5.3 to 7.0.2 |
Previous Message | Len Morgan | 2000-08-07 15:55:38 | pg_dump help |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-08-07 15:57:30 | Re: mac.c |
Previous Message | Lamar Owen | 2000-08-07 15:56:35 | Re: was: bad datatypes time and timestamp - wrong gcc option |