Re: unsafe floats

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2004-03-11 11:43:30 Re: pgFoundry WAS: On pgweb project
Previous Message Peter Eisentraut 2004-03-11 09:42:55 Re: unsafe floats