hg wrote: > 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 ?
The first integer specifies the total width: >>> "%05.2f" % 0 '00.00' Peter -- http://mail.python.org/mailman/listinfo/python-list