This is an old revision of the document!
⇐ Index
<-a <-b mod2 ->result
Perform integer division and returns the value (modulo) of the difference. Works differently with negative numbers than mod. Performs this calculation result = a % b; if (result { 0) result += b;
trace(5 3 mod2) #prints '2'
⇐ Index