Script functions reference > Script functions in alphabetical order > M > Mod

Mod
Syntax
Mod(num_1, num_2)
num_1 
num_2 
Description
Returns a number between 0 (inclusive) and num_2 (exclusive) that is the modulus of the arguments.
Returns
A number specifying the calculation remainder.
Example
mod(106, 10)
Returns: 6
mod(3.5, 1.5)
Returns: 0.5
mod(-1, 2)
Returns: 1
mod(-106, 10)
Returns: 4
OpenText StreamServe 5.6 Updated: 2013-03-01