ProtoFlux:Value Mod

From Resonite Wiki
%
A
*
B
Operators

The ValueMod node takes in 2 inputs and returns the remainder value of a division operation. This node goes by names such as "Modulus", "Modulo", and "Mod". (TODO: Does truncation/rounding come into play when using this as an int value compared to float values?)

If you just want the result of a division, use the Div node instead.
This node when using negative numbers (in the A input), will result in values that enter the excluded range of values (See image of the chart explaining the side effects). Using the Value Repeat node will give different results.

Inputs

A (Pseudo-Generic)

Takes in the value for division, this is your current amount to check against.

B (Pseudo-Generic)

Takes in a value for division, this is your range, or how much you can fill in with your value before it rolls over and starting from 0.

Outputs

* (Pseudo-Generic)

Returns the remainder value of a division operation.

Examples

See Also