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: [email protected]
Reporter: [email protected]
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".
--
