I am trying to sum up a list of float number. There is not repeating decimals in the list but the result is a repeating decimals number. What is the cause and how to prevent? (Python version: 2.7.11)
For example,
a=[1.1, 1.1, 1.1, 1.1, 1.1, 1.1, 1.1]
sum(a)
results in
7.699999999999999
Thank you.