[Issue 20568] New: Unable to convert string to int or uint ... if string having underscore character but work with float ....
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 8 15:03:41 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20568
Issue ID: 20568
Summary: Unable to convert string to int or uint ... if string
having underscore character but work with float ....
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
Severity: trivial
Priority: P3
Component: phobos
Assignee: nobody at puremagic.com
Reporter: apz28 at hotmail.com
//Inconsistent behavior
import std.conv : to;
auto workWithFloat = to!float("1_000");
auto failWithInt = to!int("1_000");
auto failWithInt = to!uint("1_000");
--
More information about the Digitalmars-d-bugs
mailing list