mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #5859: Remove '%f' to '%g' formatting switch for large floats.
This commit is contained in:
parent
f489caf5da
commit
33841c3489
6 changed files with 27 additions and 19 deletions
|
@ -22,8 +22,8 @@
|
|||
%.0f 123.456 -> 123
|
||||
%.0f 1234.56 -> 1235
|
||||
%.0f 1e49 -> 9999999999999999464902769475481793196872414789632
|
||||
-- %.0f 1e50 -> 100000000000000007629769841091887003294964970946560
|
||||
%.0f 9.9999999999999987e+49 -> 99999999999999986860582406952576489172979654066176
|
||||
%.0f 1e50 -> 100000000000000007629769841091887003294964970946560
|
||||
|
||||
-- precision 1
|
||||
%.1f 0.0001 -> 0.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue