Follow

Integer division in C/C++ and rounds toward 0, but in and it rounds toward negative infinity, giving different results if an operand is negative. This also affects the % ("modulo" or "remainder") operator.

python-history.blogspot.com/20

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.