skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Mod
 

Try Corticon Now

Mod

SYNTAX

<Integer1>.mod(<Integer2>)

DESCRIPTION

Returns the whole number remainder that results from dividing <Integer1> by <Integer2>. If the remainder is a fraction, then 0 (zero) is returned.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The following Rulesheet > uses .mod to calculate the whole number remainder resulting from the division of integer2 by 3. The result is assigned to integer1.

SAMPLE RULETEST

A sample Ruletest provides three examples of integer2. Input and Output panels are shown below.