I'm having a little trouble undestanding one thing on python. I was trying to pick the rest of a division on a floating number, but i think i run into an error, because the result keeping coming wrong.
As an example, if I write this:
a = 2.9%2
b = 2.4%2
c = 2.1%2
print('{}\n{}\n{}'.format(a, b, c))
it returns
0.8999999999999999
0.3999999999999999
0.10000000000000009