[Cfp-interest] AI about C support for "snan" character sequences

Jim Thomas jaswthomas at sbcglobal.net
Tue Oct 9 15:19:27 PDT 2018


>     All: Consider the fact that C doesn't support the SNaN sequence that IEEE does. Can have strtod take it as input.


IEEE 754 5.12.1 says

Conversion of an external character sequence “snan” (regardless of case) with an optional preceding sign, to a supported format should either produce a signaling NaN or else produce a quiet NaN and signal the invalid operation exception.

I think as written it is a recommendation to do one or the other, but not a requirement to do either. Is this what the 754 committee intended?


- Jim Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20181009/96cf8e2b/attachment-0001.html 


More information about the Cfp-interest mailing list