How to display a float with two decimal places? May 9, 2022 by Tarik Since this post might be here for a while, lets also point out python 3 syntax: "{:.2f}".format(5)