mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +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
|
|
@ -934,8 +934,6 @@ format_float_internal(PyObject *value,
|
|||
|
||||
if (precision < 0)
|
||||
precision = 6;
|
||||
if ((type == 'f' || type == 'F') && fabs(val) >= 1e50)
|
||||
type = 'g';
|
||||
|
||||
/* Cast "type", because if we're in unicode we need to pass a
|
||||
8-bit char. This is safe, because we've restricted what "type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue