Re: unsafe floats - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unsafe floats
Date
Msg-id 13696.1078959378@sss.pgh.pa.us
Whole thread Raw
In response to Re: unsafe floats  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> What number would you like 'Infinity'::float4 and 'Infinity'::float8
> to produce? Is this actually useful functionality?

On an IEEE-spec machine, it's highly useful functionality.  +Infinity
and -Infinity are special values.

BTW the float4out and float8out routines already cope with NANs and
infinities, so ISTM the input routines should be able to reverse that.
(At the moment you might only be able to get an infinity inside the
system as the result of certain math functions.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: fsync with sync, and Win32 unlink
Next
From: Tom Lane
Date:
Subject: Re: selective statement logging