Issue #5859: Remove '%f' to '%g' formatting switch for large floats.

This commit is contained in:
Mark Dickinson 2009-05-01 15:37:04 +00:00
parent f489caf5da
commit 33841c3489
6 changed files with 27 additions and 19 deletions

View file

@ -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"