Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment: Maybe you are looking for floor division?
https://docs.python.org/3.3/reference/expressions.html#binary-arithmetic-operations > The / (division) and // (floor division) operators yield the quotient of > their arguments. The numeric arguments are first converted to a common type. > Division of integers yields a float, while floor division of integers results > in an integer; the result is that of mathematical division with the ‘floor’ > function applied to the result. Division by zero raises the ZeroDivisionError > exception. Python 3.8 >>> 17 / 3 5.666666666666667 >>> 17.0 / 3 5.666666666666667 >>> 17 // 3 5 ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38939> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com