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

International conversion of string values to double (or int) #403

Open
hjmjohnson opened this issue Nov 25, 2018 · 0 comments
Open

International conversion of string values to double (or int) #403

hjmjohnson opened this issue Nov 25, 2018 · 0 comments

Comments

@hjmjohnson
Copy link
Member

hjmjohnson commented Nov 25, 2018

Thanks to @ihnorton for bringing this to our attention in #394:


std::stod is risky in a different way: it is locale-dependent, so international users could see strange results or failures (due to parsing . and , incorrectly). Unfortunately this is another place where C/C++ stdlib has no clearly-superior options from what I can tell:


#394 is still considered an incremental improvement, so it will be merged as is for now.

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

1 participant