Re: Infinite Interval

Поиск
Список
Период
Сортировка
От Isaac Morland
Тема Re: Infinite Interval
Дата
Msg-id CAMsGm5e8qnopiA64zJUuowLuEXvRagD=18SOkHoPL+m_zVZBYQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Infinite Interval  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sat, 25 Mar 2023 at 15:59, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Joseph Koshakow <koshy44@gmail.com> writes:
> In terms of adding/subtracting infinities, the IEEE standard is pay
> walled and I don't have a copy. I tried finding information online but
> I also wasn't able to find anything useful. I additionally checked to see
> the results of C++, C, and Java, and they all match which increases my
> confidence that we're doing the right thing. Does anyone happen to have
> a copy of the standard and can confirm?

I think you can take it as read that simple C test programs on modern
platforms will exhibit IEEE-compliant handling of float infinities.

Additionally, the Java language specification claims to follow IEEE 754:


So either C and Java agree with each other and with the spec, or they disagree in the same way even while at least one of them explicitly claims to be following the spec. I think you're on pretty firm ground.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: what should install-world do when docs are not available?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: what should install-world do when docs are not available?