I've run into the floating point issue, and I hoped to attack it using the decimal
module. Unfortunately, to my surprise, simply passing the floats to the Decimal
constructor does not seem to generically solve the problem. A simple illustration of a broader issue below. Please, can someone explain this? Is converting to strings before passing to the Decimal
the only way forward?
Please note, my question is not about this specific division of the two numbers, it's a general issue/concept that I'm trying to address.