Re: unsafe floats - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: unsafe floats
Date
Msg-id 200403111042.55294.peter_e@gmx.net
Whole thread Raw
In response to Re: unsafe floats  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: unsafe floats  (Dennis Bjorklund <db@zigo.dhs.org>)
List pgsql-hackers
Dennis Bjorklund wrote:
> A more important question is if we should give errors or produce
> Infinity and NaN on mathematical operations. That is, should
> operations like sqrt(-1.0) produce NaN or give an error.

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.



pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: [pgsql-hackers-win32] fsync with sync, and Win32 unlink
Next
From: Dennis Bjorklund
Date:
Subject: Re: unsafe floats