Re: unsafe floats

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: unsafe floats
Дата
Msg-id Pine.LNX.4.44.0403111144210.13979-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: unsafe floats  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: unsafe floats  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
On Thu, 11 Mar 2004, Peter Eisentraut wrote:

> This needs to be definable by the user.  IEEE 754 compliant systems 
> should provide a way to set the behavior in case of exception 
> conditions such as these.  Maybe the C library provides one, or we need 
> to catch this ourselves.

In C one can set a signal handler to catch floating point exceptions 
(SIGFPE). Without a handler you can get NaN and Infinity as the result of 
mathematical operations.

-- 
/Dennis Björklund



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: unsafe floats
Следующее
От: Fabien COELHO
Дата:
Сообщение: client side syntax error localisation for psql (v1)