Modulo
VEX node
Computes the modulo of two values.
See also: Ceiling, Floor, Fraction
This operator computes the modulo of two values.
The sign of the modulus operation matches the behavior of multiplication. Using modulus to clamp a number to range does not work as may be expected if the input number is negative. mod(-3, 5) == -3, which is not in the range 0-5.
Usages in other examples
| Example name | Example for | |
|---|---|---|
| FurBallWorkflow |
Fur surface node |