Instead of using floating point numbers either use strings, where you can control the format, or decimals from the decimal
library.
You need to do this because floating point numbers are rarely precise e.g.:
>>> ot = 1.0/10
>>> ot
0.10000000000000001
>>> decimal.Decimal(1)/10
Decimal('0.1')