Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3DFFC69E.693C6E55@phekda.freeserve.co.uk> Date: Wed, 18 Dec 2002 00:51:42 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: strtof (C99) [PATCH] References: <7458-Tue17Dec2002223139+0200-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > > > Date: Tue, 17 Dec 2002 13:26:36 +0000 > > From: "Richard Dawe" > > > > 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/ ]