Function that returns the remainder of the division between numeric variables.
Syntax |
real mod (real dividend, real divisor) |
---|---|
dividend |
Value whose module is desired |
divisor |
Module value |
Result |
Returns the remainder of the division, calculated using the following logic: mod = dividend - (divisor * (int)(dividend / divisor)) |
Validity |
Rule, Task |
Note |
Example of use:
|