MOD |
mod calculates a remainder of division.
mod(num_exp1, num_exp_2)
|
Element |
Description |
Restrictions |
|
num_exp1 |
Numeric Expression |
None |
|
num_exp2 |
Numeric Expression |
None |
Y = mod(Z, 0.5)
mod(X,Y) returns the following:
X
if Y is null,
X - Y*int(X/Y) if X is positive,
-mod(-X, Y)
if X is negative.
The result is of the Integer or Decimal type - depending on the situation.
|
Error |
Description |
|
ERMODE (10) |
The parameters are not numeric. |
|
|