Re: unsafe floats

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: unsafe floats
Date: 2004-03-11 09:42:55
Message-ID: 200403111042.55294.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-03-11 10:46:19 Re: unsafe floats
Previous Message Zeugswetter Andreas SB SD 2004-03-11 09:38:40 Re: [HACKERS] fsync with sync, and Win32 unlink