mod

Perform a modulo arithmetic operation

Syntax

mod(arith_expr1, arith_expr2)

Arguments

arith_expr1 The expression to divide.
arith_expr2 The expression that is used as the divisor.

Description

This scalar numeric function performs a modulo arithmetic operation of the form arith_expr1 modulo arith_expr2.  In other words, the function retrieves the remainder resulting from dividing arith_expr1 by arith_expr2.