ReferenceScript nodesMath › Integer
Modulo (Integer)
What's left after dividing A by B, with the sign of A (-7 % 3 is -1); 0 when B is 0.
ƒModulo (Integer)
A7Result
B3
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Aa | int | 7 | – |
Bb | int | 3 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒModulo (Integer)
A7Result
B3
ƒ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.