mod()

Function group Execute on client Platform(s)
Number YES All

Syntax

mod(number1,number2)

Description

Returns the remainder of a number division, that is, when number1 is divided by number2 to produce a remainder; it is a true modulus function.

Example

Calculate lResult as mod(6,4)
; returns 2


Calculate lResult as mod(4,6)
; returns 4


Calculate lResult as mod(-5,-2)
; returns -1