[Issue 20951] Wrong Decimal Literals Encoding

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 10 14:23:00 UTC 2020


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

--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Илья Ярошенко from comment #3)
> In D we always have the last case which makes D a non-IEEE language, as well
> as non-C compatible. `toPrec` can't solve this issue.

I don't think we pretend to be a C-compatible language when it comes to
floating point, so you can't use that argument.  The same goes for IEEE during
CTFE as well.  This has been discussed relentlessly since at least 2012, the
status-quo is not expected to change.

--


More information about the Digitalmars-d-bugs mailing list