Mod
- Last Updated: October 26, 2026
- 1 minute read
- Corticon.js
- Version 2.4
- Documentation
SYNTAX
<Integer1>.mod(<Integer2>)
Returns the whole number remainder that results from dividing <Integer1> by <Integer2>. If the remainder is a fraction, then 0 (zero) is returned.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
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.
![]()
A sample Ruletest provides three examples of integer2. Input and Output panels are shown below.
![]()