exp() versus the POSIX standard

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
exp() versus the POSIX standard
Дата
Msg-id
582552.1591917752@sss.pgh.pa.us
Список
Дерево обсуждения
exp() versus the POSIX standard Tom Lane <tgl@sss.pgh.pa.us>
Re: exp() versus the POSIX standard Tom Lane <tgl@sss.pgh.pa.us>
Re: exp() versus the POSIX standard Darafei "Komяpa" Praliaskouski <me@komzpa.net>
Re: exp() versus the POSIX standard Tom Lane <tgl@sss.pgh.pa.us>
Re: exp() versus the POSIX standard Darafei "Komяpa" Praliaskouski <me@komzpa.net>
Re: exp() versus the POSIX standard Emre Hasegeli <emre@hasegeli.com>
Re: exp() versus the POSIX standard Tom Lane <tgl@sss.pgh.pa.us>
Re: exp() versus the POSIX standard Emre Hasegeli <emre@hasegeli.com>
The POSIX standard says this about the exp(3) function:

	If x is -Inf, +0 shall be returned.

At least on my Linux box, our version does no such thing:

regression=# select exp('-inf'::float8);
ERROR:  value out of range: underflow

Does anyone disagree that that's a bug?  Should we back-patch
a fix, or just change it in HEAD?  Given the lack of user
complaints, I lean a bit towards the latter, but am not sure.

			regards, tom lane


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
FAQ