digitalmars.D.bugs - [Issue 20760] New: checkaction=context doesnt print floating point
- d-bugmail puremagic.com (27/27) Apr 22 2020 https://issues.dlang.org/show_bug.cgi?id=20760
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 puremagic.com Reporter: moonlightsentinel 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 --
Apr 22 2020