June 30, 2010 [Issue 4409] New: to!double("-nan") throws | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2010-06-30 07:32:09 PDT --- 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: ------- |
August 11, 2010 [Issue 4409] to!double("-nan") throws | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=4409 David Simcha <dsimcha@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from David Simcha <dsimcha@yahoo.com> 2010-08-11 13:58:44 PDT --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation