The modulo operation (%) calculates the remainder from the division of two scalar numbers or vectors.
The sign of the result shares the sign of the numerator unless Always Positive is enabled.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Numerator | The left-hand side of the modulo operation. Primary Input | f32f64u32vec2 |
| Modulus | The right-hand side of the modulo operation. Default: | f32f64u32vec2 |
| Always Positive | Ensures the result is always positive, even if the numerator is negative. Default: | bool |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | f64f32u32vec2 |