-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unexpected trailing zeros in to_string(double) #1153
Comments
Thanks for reporting. The default has changed to the shortest decimal representation to follow the standards proposal, so this is expected. If you want some specific format please use the |
Ok, thanks. |
P.S. |
|
std::cout << fmt::to_string(1234.0);
Previously (for years) this was printing "1234".
Now it prints "1234.0" and, of course, breaks someone's workflow.
Probably related to #1129.
The text was updated successfully, but these errors were encountered: