Re: Proposal: Trigonometric functions in degrees

From: Piotr Stefaniak <postgres(at)piotr-stefaniak(dot)me>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: Trigonometric functions in degrees
Date: 2016-01-31 13:03:27
Message-ID: BLU436-SMTP128AB208D4F1E5D4984682CF2DD0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-01-31 13:07:06 Re: PostgreSQL Audit Extension
Previous Message Alvaro Herrera 2016-01-31 12:43:26 Re: Transactions involving multiple postgres foreign servers