Integer division in C/C++ and #Java rounds toward 0, but in #Python and #Rstats it rounds toward negative infinity, giving different results if an operand is negative. This also affects the % ("modulo" or "remainder") operator.
http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html