Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscore-separated digits #243

Open
BlueManedHawk opened this issue Aug 23, 2022 · 2 comments
Open

Underscore-separated digits #243

BlueManedHawk opened this issue Aug 23, 2022 · 2 comments

Comments

@BlueManedHawk
Copy link

Some systems use underscores as a digit separator, which this list doesn't have strings for.

@josheinstein
Copy link

Was added to C# a few versions ago. The underscores can be placed anywhere, not just in groups of 3. So may be worth testing different groupings to make sure if they're supposed to parse as numbers, they return the same numbers.

@Ferroin
Copy link

Ferroin commented Sep 11, 2022

Erlang and Elixir also support this syntax (Erlang because it was developed in a region where spaces are commonly used for digit grouping, and Elixir because it inherited it from Erlang).

This may also be worth including to catch systems that expect non-numeric input, but fail to catch this particular format and parse it as numeric (though I suspect those cases to be much less common that wanting to accept this format and not doing so correctly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants