Why does division "/" and floored division "//" operators in python gives different results for divisions with a remainder = 0?
When dividing somewhat large integers with numbers that divides them, I get different results from division / and floored division //. for instance: In [1]: a = 123456789012345678 In [2]: int(a/2) Out[2]: 61728394506172840 In [3]: a//2 Out[3]: 61728394506172839 clearly 2|a, and out[3] is the correct answer, so why the inconsistency from the division operator? what… Read More Why does division "/" and floored division "//" operators in python gives different results for divisions with a remainder = 0?