Modulo
Overview
Modulo is a modular arithmetic Node, which divides one number (dividend) by a second number (divisor) and outputs the remainder of the Euclidean division operation.
This is the equivalent of the modulo (%
) operation in computer science.
|
| Quotient |
|
10 | 25 | 2 | 5 |
5.5 | 1.5 | 3 | 1 |
540 | 360 | 1 | 180 |
15 | 12 | 1 | 3 |
Attributes
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
| Defined in the | The left side of the Euclidean division operation (the number to be divided) if no value is provided in the |
| Defined in the | The right side of the Euclidean division operation (the number to divide by) if no value is provided in the |
Inputs
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard input Pulse, to trigger the execution of the Node. |
| Defined in the | The left side of the Euclidean division operation (the number to be divided). |
| Defined in the | The right side of the Euclidean division operation (the number to divide by). |
Outputs
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard output Pulse, to move onto the next Node along the logic branch, once this Node has finished its execution. |
| Defined in the | The remainder of the Euclidean division operation. |
External Links
Intro to remainders on Kahn Academy.
What is modular arithmetic? on Kahn Academy.
Last updated