Math: modulo
Calculate the remainder of the division of two numbers (a % n). A zero
modulus (n = 0) is not supported and fails the record.
Example
# Example with no default:
Input:
- a: 11
- n: 5
Output: 1
# Example with default dividend a=11:
Input:
- n: 5
Output: 1
# Example with default divisor n=5:
Input:
- a: 11
Output: 1
Parameters
Default dividend
Optional dividend (a) to use in the modulo if no dividend input is
provided. Leave empty to fail the record when the input is missing.
Default divisor
Optional divisor (n) to use in the modulo if no divisor input is
provided. Leave empty to fail the record when the input is missing. A zero
modulus is not supported.
Input
a (required if no default dividend)
Dividend to use in the modulo.
n (required if no default divisor)
Modulus to use in the modulo operation. A zero modulus is not supported.
Output
Number
Remainder of the modulo operation.