modulo
FEEL built-in function · Numeric functions
modulo(dividend, divisor)
Returns the remainder of the division. The result has the sign of the divisor.
Parameters
| Parameter | Type | Description |
|---|---|---|
| dividend | number | the value to divide |
| divisor | number | the divisor, must not be 0 |
Examples
modulo(12, 5)
2
Try it →
modulo(-12, 5)
3
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).