[Cfp-interest] NAN(n-char-sequence)

Jim Thomas jaswthomas at sbcglobal.net
Tue Oct 23 14:04:16 PDT 2018


Sorry, I misunderstood your point. You raised a good question. 

We want strtod to read whatever printf might write, which the correct spec does. strtod allows the form "nan()" which printf doesn’t produce, but a program might produce "nan()" some other way. I suppose we could allow printf to produce "nan()", but I don’t see any value in doing it

- Jim Thomas

> On Oct 23, 2018, at 12:09 PM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> On Tue, 23 Oct 2018 11:28:48 -0700 Jim Thomas wrote:
>> 
>> We have it optional for printf, required for strtod, which I think is what we want.
> 
> That is backwards to what I see in C17.
> 
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.




More information about the Cfp-interest mailing list