Formatting Numbers : Float format : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Float format »

 

Formatting Numbers


print "Today's stock price: %f" 50.462
print "Today's stock price: %.2f" 50.4625     
print "Change since yesterday: %+.2f" 1.5



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Data Type
» Float format