-
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
Grisu: trailing zero with fixed, precision=0, and showpoint #1417
Comments
Good catch, thanks! Fixed in 28d7191. |
On a related note...
Using the prior commit (c7edd8e) outputs:
|
FP formatting was being refactored =). Should be fixed now. |
On another related note, when printing scientific notation, there is a missing decimal point.
Outputs
|
When printing in fixed notation with precision=0 and showpoint , there is a trailing zero when Grisu is enabled.
Using g++ 9.2.1 and libfmt master branch (9108b25)
The following code illustrates this
Outputs:
The text was updated successfully, but these errors were encountered: