Stop using floats.
Rounding errors considered harmful.
Today, this question was posted on Reddit, in the “learnpython” community:
Why does it work like that? I have a program that takes a euro amount (float) and converts it into another currency. But when I use…