Divides the value of one expression by the value of another, and returns the remainder (modulus).
i % j
i : avar
j : avar
The modulus, or remainder, operator divides integer number1 by integer number2 and returns only the remainder. The sign of the result is the same as the sign of number1. The value of the result is between 0 and the absolute value of number2.
Global l%
Print (42 % 6) // prints 0
l% = 42 % 5
Print l% // prints 2
% is identical to Mod.
{Created by Sjouke Hamstra; Last updated: 17/09/2014 by James Gaite}