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

@ -8808,9 +8808,6 @@ formatfloat(PyObject *v, int flags, int prec, int type)
if (prec < 0)
prec = 6;
if (type == 'f' && fabs(x) >= 1e50)
type = 'g';
p = PyOS_double_to_string(x, type, prec,
(flags & F_ALT) ? Py_DTSF_ALT : 0, NULL);
if (p == NULL)