0

This is an example:

var = float(input("Type in something: "))
var2 = round(var, 2)
print(var2)

How do I make it so if the user inputs a decimal with just the tenths place(example: 4.6), it will add a 0 at the end?

joe
  • 11
  • 1

0 Answers0