[Issue 5229] Inaccurate parsing of floating-point literals

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 16 01:06:23 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=5229

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
Digital Mars C (i.e. snn.lib) uses an older method to convert strings to
floating point numbers. Newer, slightly more accurate methods have become
available since it was written, but I've never gotten around to implementing
them.

This error is likely related to that.

If the error doesn't occur with DMD on other platforms, like Linux, then this
is almost certainly the culprit.

Note that the DMD compiler itself uses the C runtime conversion routine for its
lexer.

--


More information about the Digitalmars-d-bugs mailing list