Open CyberShadow opened 1 year ago
This program should print 0:
import std.conv; import std.stdio; void main() { auto a = to!double("0.1"); auto b = to!double("0.1000000000000000"); writeln(a - b); }
On Windows, this prints 1.38778e-17.
1.38778e-17
-m32mscoff
-m64
dmd
Related (or same?) issue: https://github.com/ldc-developers/ldc/issues/4433
This program should print 0:
On Windows, this prints
1.38778e-17
.-m32mscoff
and-m64
.dmd
(either-m32mscoff
or-m64
).