bug in atof
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sat Jan 21 09:34:28 CST 2006
>>>>> "Peter" == Peter Beutner <p.beutner at gmx.net> writes:
Peter> Which means that '7.8912654773d210' is the same as
Peter> '7.8912654773e210'.
Running the test with native msvcrt doesn't give me 7.8912654773e210
neither...
Peter> But on linux we have(quoted from 'man strtod'): ----- A decimal
Peter> number consists of a nonempty sequence of decimal digits pos-
Peter> sibly containing a radix character (decimal point, locale
Peter> dependent, usually ``.''), optionally followed by a decimal
Peter> exponent. A decimal exponent consists of an ``E'' or ``e'',
Peter> followed by an optional plus or minus sign, followed by a
Peter> non-empty sequence of decimal digits, and indicates
Peter> multiplication by a power of 10. ----
Peter> It doesn't parse 'd' or 'D' as exponent. Seems to be a "MS-only
Peter> extension" to the standard :p
Could you please check '7.8912654773d210' gives the expected result on
windows?
Peter> [1]
Peter> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_atof.2c_.atoi.2c_._atoi64.2c_.atol.asp
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel
mailing list