Mod

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

Mod (arg1, arg2)

where arg2 is the divisor and arg1 and arg2 are one of these arguments:

Argument

Description

numeric

A numeric value. For example, Mod (6, 4) returns the value 2. Numeric values can include decimals and negative values.

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: GridName.GridElement[segment(range)].Property

function

An embedded function

Example:

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

  Mod (10,5) = 0