$REMAINDER returns the remainder after one numeric expression is divided by another. Mathematically, the remainder is defined as
m ‑ ([m|n] * n)
where [ ] means “the integer portion of.”
This function has the following format:
$REMAINDER(m,DIV=n)
The dividend. This must be a numeric expression.
The divisor. This must be a numeric expression.
Examples
SET I = 100
SET J = 2567
SET K = $REMAINDER (J,DIV=I) : remainder is 67
SET I = 100
SET J = ‑2567
SET K = $REMAINDER (J,DIV=I) : remainder is ‑67
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|