Mod

Modis a mathematical function that returns the remainder, or modulus, from a division.

Syntax:

Mod(arg1,arg2)

where arg2 is the divisor, and arg1 and arg2 are one of the following values:

Argument

Description

numeric

A numeric value. For example, Mod(6,4) returns the value 2.

Numeric values can include decimals and negative values. 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. See Row, Column, or Cell Reference Arguments.

function

An embedded function.

See Mathematical Functions.

Example:

Divide 10 by 5 and return the remainder of 0:

Mod(10,5)=0