Sorry about the bad formatting. I just ctrl+c, ctrl+v form the manual.
hope it helps!
Mod
Mod(
x, ! (input) numerical expression
y ! (input) numerical expression
)
Arguments:
x
A scalar numerical expression.
y
A scalar numerical expression unequal to 0.
Return value:
The function Mod returns the remainder of x after division by |y|. For
y >0, the result is an integer in the range 0, . . . ,y - 1 if both x and y are
integers, or in the interval [0,y) otherwise. For y <0, the result is an
integer in the range y - 1, . . . ,0 if both x and y are integers, or in the
interval (y, 0] otherwise.
Remarks:
A run-time error results if y equals 0.
The function Mod can be used in constraints of mathematical programs.
However, nonlinear solver may experience convergence problems if x
assumes values around multiples of y.
See also:
Arithmetic functions are discussed in full detail in Section 6.1.4 of the
Language Reference.
I would like to ask how to express i%10(remainders) in AIMMS ?? Thanks