I want to display:
49 as 49.00
49
49.00
and:
54.9 as 54.90
54.9
54.90
Regardless of the length of the decimal
if you have multiple parameters you can use
print('some string {0:.2f} & {1:.2f}'.format(1.1234,2.345)) >>> some string 1.12 & 2.35