MOD is more versatile thank you might think.
is a numeric matrix or literal giving the divisor. The MOD function is the scalar function returning the remainder of the division of elements of the first argument by elements of the second argument.