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.



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to