mod

mod <numerical variable>,<number>

Returns the remainder after the variable is divided by the number (same as the x % y command in C).