L
Lorenzo Di Gregorio
Hello,
I thought that I could zero-pad a floating point number in 'print' by
inserting a zero after '%', but this does not work.
I get:
print '%2.2F' % 3.5
3.50
print '%02.2F' % 3.5
3.50
How can I get print (in a simple way) to print 03.50?
Best Regards,
Lorenzo
I thought that I could zero-pad a floating point number in 'print' by
inserting a zero after '%', but this does not work.
I get:
print '%2.2F' % 3.5
3.50
print '%02.2F' % 3.5
3.50
How can I get print (in a simple way) to print 03.50?
Best Regards,
Lorenzo