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

Mike Cowlishaw mfc at speleotrove.com
Wed Oct 10 00:08:11 PDT 2018


 

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


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? 
 

I believe it was ...that's the first use of Should in that subclause.
 
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20181010/60774c25/attachment-0001.html 


More information about the Cfp-interest mailing list