Floor division (//) does mathematical division with the floor function applied to the result. For floating point numbers, int(x) truncates towards zero. For positive numbers, but not for negative, the functionality is the same, with floor division terser and avoids extra parentheses.
Floor division (//) does mathematical division with the floor function applied to the result. For floating point numbers, int(x) truncates towards zero. For positive numbers, but not for negative, the functionality is the same, with floor division terser and avoids extra parentheses.