delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/17/08:42:15

X-Sybari-Trust: ec3b5833 1864f774 2a3f1235 00000138
From: Martin Stromberg <eplmst AT epl DOT ericsson DOT se>
Message-Id: <200212171342.OAA29462@lws256.lu.erisoft.se>
Subject: Re: strtof (C99) [PATCH]
To: djgpp-workers AT delorie DOT com
Date: Tue, 17 Dec 2002 14:42:09 +0100 (MET)
In-Reply-To: <E18OHjh-0000e1-00@phekda.freeserve.co.uk> from "Richard Dawe" at Dec 17, 2002 01:26:36 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Please find below a patch to add strtof. The code is based on strtod.

Thanks.

But is there any reason not to call strtod() followed by two
comparisions for overflow detection (or four, underflow too) and
returning that?

> Please note that I don't know a whole lot about floating point. I've

But then I'm in this class too...


Right,

						MartinS

- Raw text -


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