float print formatting

hg hg at nospam.org
Tue Feb 13 01:53:50 EST 2007


Hi,

Considering the float 0.0, I would like to print 00.00.

I tried '%02.02f' % 0.0 ... but I get 0.00

Any clue ?

Thanks,

hg




More information about the Python-list mailing list