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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.