Mod  Integer

The Mod function calculates a modulo with another number.
The modulo is the remainder of division of one number by another.

Syntax

Integer Integer.Mod(
     Integer value)

Parameters

valueThe divisor.Required

Return value

The Mod function returns the result of modulo calculation.

Example

// Create an Integer named myInteger
Integer myInteger

// Set value to 10
myInteger = 10

// Display result of myInteger modulo 3
MessageBox("Modulo result: " + myInteger.Mod(3))
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia