delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/17/19:51:49

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 <rich AT phekda DOT freeserve DOT co DOT uk>
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: <E18OHjh-0000e1-00 AT phekda DOT freeserve DOT co DOT uk> <7458-Tue17Dec2002223139+0200-eliz AT is DOT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019