Re: unsafe floats

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unsafe floats
Дата
Msg-id 13696.1078959378@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: unsafe floats  (Neil Conway <neilc@samurai.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: fsync with sync, and Win32 unlink
Следующее
От: Tom Lane
Дата:
Сообщение: Re: selective statement logging