[Issue 6160] New: std.conv.to!real/double/float: Ignore _ to match the rest of D
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 15 05:00:33 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6160
Summary: std.conv.to!real/double/float: Ignore _ to match the
rest of D
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2011-06-15 04:55:53 PDT ---
writeln(1000_000_000e50L); // 1e59
writeln(to!real("1000_000_000_e50"));
// std.conv.ConvException at std/conv.d(37): std.conv(758): Can't convert value
`_000_000e50' of type const(char)[] to type real
'to' should be changed to ignore embedded "_", so that it is able to convert
all valid D literals to their respective values.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list