How to display a float with two decimal places?

Since this post might be here for a while, lets also point out python 3 syntax:

"{:.2f}".format(5)

Leave a Comment