[Tutor] Difference between %f and %F string formatting?
boB Stepp
robertvstepp at gmail.com
Wed Apr 26 22:08:16 EDT 2017
My Google-fu must be weak tonight. I cannot find any discernible
difference between '%f' % <some floating point number> and '%F' %
<some floating point number>. Is there any or do they duplicate
functionality? If the latter, why are there two ways of doing the
same thing?
I had a similar question for %d and %i, but googling suggests these
are inherited from differences in handling input in the C language,
though I could not locate a Python example where there is a need for
one or the other. Are there any relevant Python examples?
--
boB
More information about the Tutor
mailing list