Difference between revisions of "Operator Reference"
modulus of negative number
imported>Egocarib (note on integer division) |
imported>Egocarib (modulus of negative number) |
||
Line 60: | Line 60: | ||
; i will get the value of 1 | ; i will get the value of 1 | ||
i = 9 % 4 | i = 9 % 4 | ||
; i will get the value of -3 | |||
i = -7 % 4 | |||
</source> | </source> | ||
<br> | <br> |