Thread overview
[Issue 20568] Unable to convert string to int or uint ... if string having underscore character but work with float ....
Feb 08, 2020
apham
Feb 08, 2020
Basile-z
Feb 08, 2020
Basile-z
Mar 21, 2020
Basile-z
Apr 21, 2021
Berni44
February 08, 2020
https://issues.dlang.org/show_bug.cgi?id=20568

apham <apz28@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

--
February 08, 2020
https://issues.dlang.org/show_bug.cgi?id=20568

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
In theory underscores should throw when found in an argument of `to!float`.

This other issue (https://issues.dlang.org/show_bug.cgi?id=9797) was closed for the rationale that is that std.conv.to is not made to handle special D flavors of number literals but is rather a generic handler.

Note that octal and hexString handle underscores for another reason, that is that they were made specifically to replace literals.

--
February 08, 2020
https://issues.dlang.org/show_bug.cgi?id=20568

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=9797

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=20568

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
April 21, 2021
https://issues.dlang.org/show_bug.cgi?id=20568

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@bernis-buecher.de
         Resolution|---                         |DUPLICATE

--- Comment #2 from Berni44 <bugzilla@bernis-buecher.de> ---


*** This issue has been marked as a duplicate of issue 15526 ***

--