Bug: atof() can't parse "NaN"

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jan 6 22:38:00 GMT 2005


On Jan  6 13:49, Shankar Unni wrote:
> Roger Leigh wrote:
> 
> >  our_nan = atof ("NaN");
> 
> Which platform does this work on, for you? I wouldn't expect it to 
> "work" (i.e. return a NaN), and I can't get it to work on a Linux 
> (somewhat old, I admit) box either. Or using (hiss!) MSDEV (VC++ 2003 
> .NET) on a WinXP box.

The ISO C standard expects it to work.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list