This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients eric.smith, mark.dickinson
Date 2009-04-27.20:50:02
SpamBayes Score 1.1735e-06
Marked as misclassified No
Message-id <>
Currently, Python switches from %f to %g formatting at 1e50.  This 
applies both to the old-style percent formatting, and to the newer PEP 
3101-style formatting:

>>> '%f' % 2.**166
>>> '%f' % 2.**167

>>> format(2.**166, 'f')
>>> format(2.**167, 'f')

The main reason for the switch seems to have been implementation 
convenience:  it makes it possible to use a fixed-size buffer in
the float formatting routines.

I propose removing this feature for Python 3.1, but leaving it in place 
for 2.7.


for additional discussion.
Date User Action Args
2009-04-27 20:50:04mark.dickinsonsetrecipients: + mark.dickinson, eric.smith
2009-04-27 20:50:04mark.dickinsonsetmessageid: <>
2009-04-27 20:50:03mark.dickinsonlinkissue5859 messages
2009-04-27 20:50:02mark.dickinsoncreate