Mail Archives: djgpp-workers/2002/12/17/19:51:49
Hello.
Eli Zaretskii wrote:
>
> > Date: Tue, 17 Dec 2002 13:26:36 +0000
> > From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > Test 6: Inf -> 0
>
> Why doesn't this return an Inf (the float representation of it)?
Because strtof does not parse Inf. strtod and strtold do not either.
C99 requires strto* to understand Inf and NaN (and other capitalisations). I
think we can fix those problems in another round of C99-compliance work.
> Also, what about a NaN?
I can add a test for NaNs, if that's what you are asking.
> I will review the code as soon as I have time.
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -