Modulus

Syntax

Modulus(Input1: Variant; Input2: Variant)

Parameters

Input1. Variable.

Input2. Divisor.

Description

It returns the remainder of the integer division values of variable points to the specified number. The result has the same sign as the dividend.

NOTE. The Modulus and Mod_ methods duplicates each other.

Example

Formula Result Application
= Modulus({Brazil|BCA},{China|BCA})

The remainder from integer division of the Brazil|BCA factor is calculated to the corresponding China|BCA factor observations.

It can be used in formulas of calculated series of time series database and model formulas of modeling container that is a child of the time series database.
= Modulus(X1,3)

The remainder from integer division of X1 factor points to three is calculated.

It can be used in model formulas of modeling container.
= Modulus(7,3)

1

It can be used in formulas of calculated series of time series database and modeling container models.

See also:

Functions Available in Expression Editor │ Arithmetic FunctionsIModelling.Modulus