Originally Posted by P4INKiller
Modulo:
Represented as mod or % in most programming languages.
I guess it's simple to explain what it does, but it's harder to explain why it's useful.
It's basically division.
It divides the first value by the second value, but you get the remainder of the division rather than the result.
If I divide 16 by 5 I get 3.2 (16 / 5 = 3.2).
But what if we are only allowed to divide whole numbers and not fractions?
We would only be able to divide by 4, and we would get a remainder of 1 (16 % 5 = 1).
Modulo is very useful for a number of reasons, like making a clock for instance!
Place a Two-Input operator and change its operation to Modulo, then change the second value to something like 10.
Now notice what happens with the output as you increase the first value and go beyond 10.
It resets to zero every ten increments!
This is very useful if you need a repeating number, this way you won't have to use a generic filter to see if a number has gone beyond a certain threshold and reset it with a set value event.