[Python-Dev] PEP 3101: floats format 'f' and 'F'

Mark Dickinson dickinsm at gmail.com
Wed Jul 16 17:07:03 CEST 2008


On Wed, Jul 16, 2008 at 3:35 PM, Eric Smith
<eric+python-dev at trueblade.com> wrote:
> Does anyone know why 'F' is the same as 'f'?  Wouldn't it make more sense to
> either drop it, or make it convert the exponent to upper case

What exponent?  Isn't the point of 'f' formatting that there is no exponent?

In C, the only difference seems to be that a NaN or infinity formatted with '%F'
is turned into "NAN" or "INF" instead of "nan" or "inf".

Mark


More information about the Python-Dev mailing list