[Tutor] what does %25f mean?
Pujo Aji
ajikoe at gmail.com
Mon Oct 24 09:16:05 CEST 2005
it will reserve the 25 space for your number.
example:
print '%25.2f' % (1.222,)
It will use 25 space and 2 digit of your 1.222
result is:
1.22
cheers,
pujo
On 10/24/05, Shi Mu <samrobertsmith at gmail.com> wrote:
>
> what does %25f mean?
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051024/25cf02d1/attachment-0001.htm
More information about the Tutor
mailing list