Re: Mulig SPAM: float print formatting

2007-02-13 Thread Grant Edwards
On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: > NOSPAM plz wrote: >>> Considering the float 0.0, I would like to print 00.00. >>> >>> I tried '%02.02f' % 0.0 ... but I get 0.00 >> Try this: >> >> a = 45.45 # the floating number >> >> print "some text", >> print a, >> print "some text again" > S

Re: Mulig SPAM: float print formatting

2007-02-13 Thread hg
NOSPAM plz wrote: > hg skrev: >> 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 >> >> > Try this: > > a = 45.45 # the floating number > > print "some text", > print a, > print "some tex

Re: Mulig SPAM: float print formatting

2007-02-13 Thread NOSPAM plz
hg skrev: > 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 > > Try this: a = 45.45 # the floating number print "some text", print a, print "some text again" or just this: print "some text", prin