Signs, Alignment, and Zero-Padding : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

Signs, Alignment, and Zero-Padding


A zero means that the number will be zero-padded: 

from math import pi 

print '%010.2f' % pi



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Format