mod Function
Purpose:
Preforms a modulus operation
Syntax:
mod(number,factor)
Comments:
Divides number by factor and returns the remainder
Example:
p mod(13,3)
1
// easy way to check if number is odd or even
if (modnumber,2) = 1 then
p "modumber is odd"
else
p "modnumber is even"
endif