Mod

Mod is a mathematical function that returns the remainder, or modulus, from a division. The function syntax is:

Mod (arg1, arg2)

where arg2 is the divisor and arg1 and arg2 are expressed by the following arguments:

Argument

Description

numeric

A numeric value. For example, Mod (6, 4) returns the value 2. Numeric values can include decimals and negative values. For a description of numeric arguments, see Numeric Arguments.

row, column, or cell reference

A pointer to a row, column, or cell within a grid. References can be specified in several ways. The reference syntax is: GridName.GridElement[segment(range)].Property

For more information, see Row, Column, or Cell Reference Arguments.

function

An embedded function. For a list of mathematical functions, see Mathematical Functions.

Example:

The following example divides 10 by 5 and returns the remainder of 0:

  Mod (10,5) = 0