[Issue 20760] New: checkaction=context doesnt print floating point numbers correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 22 13:04:14 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20760
Issue ID: 20760
Summary: checkaction=context doesnt print floating point
numbers correctly
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
-checkaction=context doesnt handle real some imaginary/complex types correctly,
e.g.
====================================================
assert(real(1) == real(-1)); // 1.76015e-312 != 1.76015e-312
assert(ifloat.max == -ifloat.max); // 3.40282e+38 != -3.40282e+38, missing i
assert(idouble.max == -idouble.max); // 1.79769e+308 != -1.79769e+308, missing
i
assert(ireal(1i) == ireal(-1i)); // 8.37038e-314 != 8.37038e-314
assert(creal(1 + 2i) == creal(-1 + 2i)); // 1.41579e-312 + 1.41579e-312i !=
1.41579e-312 + 1.41579e-312i
====================================================
Tested on Win64 using current master
--
More information about the Digitalmars-d-bugs
mailing list