Neil Cerutti wrote: > On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: >> 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 ? > > Yes. How wide (total) is "0.00", compared to "00.00"? > > -- > Neil Cerutti
I do not get it s = '%02.02f' % 0.0 s >> '0.00' len(s) >> 4 -- http://mail.python.org/mailman/listinfo/python-list