What is the difference between %.02f and %.2f? From what I understand, whatever number comes after the point, indicates the number of decimal places to be displayed when converting a number to a string. But what does it mean when there are two numbers coming after the point as in %.02? What is the difference between %.02f and %.2f?