must be a scalar integer (positive, zero, or negative)
Value
a numeric (integer) value or vector/matrix
Details
rem(n, m) is the same modulo operator and returns \(n\,mod\,m\).
mod(n, 0) is NaN, and the result always has the same sign
as n (for n != m and m != 0).