-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
float().__format__() default alignment #51106
Comments
format(float("0.12345"), "7.0") -> ' 0.1' The default alignment should be 'left-aligned'. |
Hmm. PEP-3101 does indeed say that left-aligned is the default, but it's I'd be inclined to say that the current float formatting is correct, and |
That is interesting. I'd agree that it's a bug in the PEP. Note that >>> '%7.0g' % 0.12345
' 0.1' I'll raise the issue on python-dev. Eric. |
I've changed the default alignment for Decimal instances to right-aligned |
Thanks for the decimal work, Mark. I notice that complex is also left |
With the fixes for complex in bpo-7988, I believe this issue is completed. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: