Mod
This function returns the modulus. The modulus operation divides num by div until num is less than div. This is useful for values that wrap, like the number of minutes on the hour.
Syntax
- number Mod(number num, number div)
Parameters
- num: the number to calculate.
- div: the value to wrap around.
Returns
Returns the modulus.