Re: Proposal: Trigonometric functions in degrees - Mailing list pgsql-hackers

From Piotr Stefaniak
Subject Re: Proposal: Trigonometric functions in degrees
Date
Msg-id BLU436-SMTP128AB208D4F1E5D4984682CF2DD0@phx.gbl
Whole thread Raw
In response to Re: Proposal: Trigonometric functions in degrees  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 01/31/2016 01:23 PM, Michael Paquier wrote:
> Per IEEE 754, division by 0 for a double results in Nan or +/-Inf, so
> that's actually correct.

I didn't know that. I guess that in practice that is OK and the case is 
closed.

Interestingly to me, that assumption appears to rely on the C 
implementation complying to IEC 60559, in which case C99 lets the 
implementation signal that by defining the __STDC_IEC_559__ macro. C89 
doesn't seem to mention any of this.




pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: PATCH: track last known XLOG segment in control file
Next
From: Alvaro Herrera
Date:
Subject: Re: PostgreSQL Audit Extension