-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Formatting for fixed-width with _two_ decimal places is resulting in _three_ #1072
Comments
In another example, I expect the expression: fmt::format( "{:7.3f}", 1E-35F ) …to result in |
In case I am misunderstanding… The above two results are consistent with the number between the
…and the expression: ::fmt::format( "{:.2f}", 0.01F ) …returns |
Thanks for reporting. The new floating-point formatting algorithm is being integrated into the |
I've also disabled the new algorithm for fixed formatting for now: d560dda, so your examples should produce expected results. |
Ah, OK. Thanks for the quick response and for fixing Again thanks for all you work on the library and on standardisation. |
Great stuff. Thanks for addressing this so quickly. |
I expect the expression:
…to result in
"0.01"s
but it's returning"0.010"s
.Thanks for all your hard work on this excellent library and on standardising it.
The text was updated successfully, but these errors were encountered: