digitalmars.D.bugs - [Issue 4409] New: to!double("-nan") throws
- d-bugmail puremagic.com (26/26) Jun 30 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4409
- d-bugmail puremagic.com (12/12) Aug 11 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4409
http://d.puremagic.com/issues/show_bug.cgi?id=4409 Summary: to!double("-nan") throws Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com import std.conv; void main() { auto foo = to!double("nan"); // Works auto bar = to!double("-nan"); // Throws } std.conv.ConvError: std.conv(659): Can't convert value `-nan' of type const(char)[] to type double It's important that the string "-nan" get converted properly to a NaN so that floating point numbers output to strings by writeln() can be read back properly. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 30 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4409 David Simcha <dsimcha yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED This appears to have been fixed in 2.048. Must be related to the revamp of std.conv. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2010