Re: unsafe floats - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: unsafe floats
Date
Msg-id Pine.LNX.4.44.0403111144210.13979-100000@zigo.dhs.org
Whole thread Raw
In response to Re: unsafe floats  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: unsafe floats  (Neil Conway <neilc@samurai.com>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: unsafe floats
Next
From: Fabien COELHO
Date:
Subject: client side syntax error localisation for psql (v1)