Divide operation with integers


#1

I can't understand what is the difference?

>>> print -5/4
-2
>>> print -(5/4)
-1

#2

from stackoverflow:
Your result (of print -5/4) using integer division is being rounded down toward the more negative value of -2. (This is also known as "Floor division")

where as 5/4 will be floored to 1, and then made negative (resulting in -1). Which explains the differences, this behavior is "fixed"/changed for python3