MOD( ) Function

Example   See Also

Divides one numeric expression by another numeric expression and returns the remainder.

Syntax

MOD(nDividend, nDivisor)

Returns

Numeric

Arguments

nDividend

Specifies the dividend. The number of decimal places in nDividend determines the number of decimal places in the return value.

nDivisor

Specifies the divisor. A positive number is returned if nDivisor is positive, and a negative number is returned if nDivisor is negative.

Remarks

The modulus function MOD( ) and the % operator return identical results.