In the python fractions module, why is a result of round() sometimes incorrect?

20 Views Asked by At

round(fractions.Fraction("3.50")) yields 4, as one would expect. But round(fractions.Fraction("49886.50")) yields 49886, not 49887. What gives?

0

There are 0 best solutions below