Question
Difference between integer division vs floating point division + int conversion
Assuming x ≥ 0
and y > 0
are both 64-bit unsigned integers would there be any correctness difference between below implementation and x // y
?
def int_divide(x, y):
return int(x / float(y))
3 114
3