the remainder function is ```%``` not the modulus.
 - for the modulus function the sign of the result is depended on the divisor
 - for the remainder function the sign of the result is depended on the dividend

```
mod(-9, 7) == 5
rem(-9, 7) == -2
-9 % 7 == -2
```