Math: modulo
Calculate the remainder of the division of two numbers (a % n).
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 (a)
Optional dividend to use in the modulo if no dividend input is provided.
Default modulus (n)
Optional modulus (divisor) to use in the modulo if no modulus input is provided.
Input
a (required if no default dividend)
Dividend to use in the modulo.
n (required if no default modulus)
Modulus to use in the modulo operation.
Output
Number
Remainder of the modulo operation.