That error is signifying that you are passing a float to the format code expecting an integer.
Use {0:f}
instead. Thus:
"I have {0:f} dollars on me".format(100.113)
will give:
'I have 100.113000 dollars on me'
That error is signifying that you are passing a float to the format code expecting an integer.
Use {0:f}
instead. Thus:
"I have {0:f} dollars on me".format(100.113)
will give:
'I have 100.113000 dollars on me'