May 16, 2019 [Issue 19878] New: Some NaNs are printed as -nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19878 Issue ID: 19878 Summary: Some NaNs are printed as -nan Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: andrei@erdani.com Test code: void main() { import std.stdio; union X { int x; float y; } X x; x.x = -1; writeln(x.y); } This should print "nan" but prints "-nan". -- |
Copyright © 1999-2021 by the D Language Foundation