[Python-Dev] Two proposed changes to float formatting

Eric Smith eric at trueblade.com
Mon Apr 27 01:42:51 CEST 2009

Mark Dickinson wrote:
> (1) Currently, '%f' formatting automatically changes to '%g' formatting for
> numbers larger than 1e50.  For example:
>>>> '%f' % 2**166.
> '93536104789177786765035829293842113257979682750464.000000'
>>>> '%f' % 2**167.
> '1.87072e+50'
> I propose removing this feature for 3.1

I don't think we've stated it on this discussion, but I know from 
private email with Mark that his proposal is for both %-formatting and 
for float.__format__ to have this change. I just want to get it on the 
record here.


More information about the Python-Dev mailing list