ReferenceScript nodesMath › Number
Modulo
What's left after taking away as many of by as fit, with the sign of a (-1 % 3 is -1); 0 when B is 0.
ƒModulo
A0Result
B1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | number | 0 | – |
Bby | number | 1 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
In a graph
◆On Scene Start
ƒModulo
A0Result
B1
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.