Previous Topic Next topic Print topic


&MOD

Determines whether a number is divisible by another by returning the numeric remainder from dividing the first argument by the second.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&MOD (dividend, divisor)

Aliases:

&mod (dividend, divisor)     &Mod (dividend, divisor)
&&modulo (dividend, divisor) &Modulo (dividend, divisor)
MODULO (dividend, divisor)

Examples:

&MOD (25, 6)  = 1
&MOD (-25, 6)  = -1
&MOD (25, -6)  = 1
&MOD (-25, -6)  = -1
&MOD (25, 7)  = 4
&MOD (25, 1)  = 0
Previous Topic Next topic Print topic