Message85386
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' |
|
Date |
User |
Action |
Args |
2009-04-04 12:20:17 | eric.smith | set | recipients:
+ eric.smith |
2009-04-04 12:20:17 | eric.smith | set | messageid: <1238847617.81.0.331181634269.issue5686@psf.upfronthosting.co.za> |
2009-04-04 12:20:16 | eric.smith | link | issue5686 messages |
2009-04-04 12:20:15 | eric.smith | create | |
|