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
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
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