MOD
Top  Previous  Next

(MOD(arg1,arg2))

Computes a modulus or remainder of arg1 divided by arg2. Arg1 and arg2 must be values that have DOUBLE, REAL, NUMERIC, or INTEGER data types and arg2 cannot be 0.

In the following example, the value of vmod is 1, the remainder when 3 is divided by 2.

SET VAR vmod = (MOD(3,2))