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 eric.smith
Recipients eric.smith
Date 2009-04-04.12:20:15
SpamBayes Score 3.6577216e-08
Marked as misclassified No
Message-id <1238847617.81.0.331181634269.issue5686@psf.upfronthosting.co.za>
In-reply-to
Content
If no format specifier is supplied to a float, it's supposed to work
like 'g', but with at least one digit after the decimal. This works for
non-exponential notation:

>>> format(1., '')
'1.0'
>>> format(1., 'g')
'1'

But for exponential notation, it does not:
>>> format(1e200, '')
'1e+200'
>>> 
>>> format(1e200, 'g')
'1e+200'
History
Date User Action Args
2009-04-04 12:20:17eric.smithsetrecipients: + eric.smith
2009-04-04 12:20:17eric.smithsetmessageid: <1238847617.81.0.331181634269.issue5686@psf.upfronthosting.co.za>
2009-04-04 12:20:16eric.smithlinkissue5686 messages
2009-04-04 12:20:15eric.smithcreate