| -12%5=-2
12%-5=2
In the first case the mod has the highest priority
The second case would take some research to find out what gives but at a guess it is taking the abs value of -5 because a negative value doesn't make sense.
12%5=2
-12%-5=-2
12/-5=-2 |