| To: | Ulrich Drepper <yyyyyyy@xxxxxxxxxx> |
|---|---|
| Subject: | Re: AI 2000-05-034: wording for strtod() |
| From: | "Clive D.W. Feather" <yyyyy@xxxxxxxxx> |
| Date: | Tue, 15 Aug 2000 11:12:48 +0100 |
| Cc: | yyyyyyyyyyyy@xxxxxxxxxxxxx, Andrew Josey <yyyyyy@xxxxxxxxxxxxxxxxx> |
| References: | <m3d7jbvcgr.fsf@otr.mynet.cygnus.com> |
Ulrich Drepper said:
> The AI was actually to provide some extra words for the new strtod()
> man page warning about the possible problems the adoption of ISO C99
> brings.
[...]
Yes, this is a Quiet Change between C90 and C99.
> The problem is the addition of floating-point numbers in hexadecimal
> notation without requiring that either a decimal point or the binary
> exponent must be present.
To require one or the other would have been a very nasty wart (since
strtod() *does* accept integers without decimal points).
In fact, it is worth adding to your text that:
what_kind_of_number ("1234")
will produce:
It's a float with value 1234
on both C90 and C99 systems.
--
Clive D.W. Feather | Work: <yyyyy@xxxxxxxxx> | Tel: +44 20 8371 1138
Internet Expert | Home: <yyyyy@xxxxxxxxxx> | Fax: +44 20 8371 1037
Demon Internet | WWW: http://www.davros.org | DFax: +44 20 8371 4037
Thus plc | | Mobile: +44 7973 377646
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: AI 2000-05-010: proposed interface, Paul Eggert |
|---|---|
| Next by Date: | Re: AI 2000-05-010: proposed interface, Clive D.W. Feather |
| Previous by Thread: | AI 2000-05-034: wording for strtod(), Ulrich Drepper |
| Next by Thread: | Re: AI 2000-05-034: wording for strtod(), Ulrich Drepper |
| Indexes: | [Date] [Thread] [All Lists] |