How is floor division not giving result according to the documented rule?

>>> print (12//0.2) 59.0 >>> print(floor(12/0.2)) 60 Why floor division is not working according to the rule in this case? p.s. Here Python is treating 0.2 as 0.20000000001 in the …

Make division by zero equal to zero

How can I ignore ZeroDivisionError and make n / 0 == 0?