Re: [BUGS] Precision errors in float8 type casting (as of 7.3.2 and

2003-07-09 Thread Stephan Szabo
On Wed, 9 Jul 2003, Philip Edelbrock wrote: > phil=# select (3.85::float4)::float8; > float8 > -- > 3.8490463257 > (1 row) > > (Or substitute 3.85 for any number with something other than 0 to the > right of the decimal point, or pull the same values from any table whic

[BUGS] Precision errors in float8 type casting (as of 7.3.2 and some earlierreleases at least)

2003-07-09 Thread Philip Edelbrock
I ran into this oddity today and tested it on a few of our PosgreSQL backends (all of which gave the same response): phil=# select 3.85::float4*1; ?column? -- 3.8490463257 (1 row) phil=# select 3.85::float4*1::float8; ?column? -- 3.849046