Modulo Node

Access: NodesMathModulo

The Modulo node outputs the input A modulo the input B. The output is the remainder after dividing A by B, where A is the dividend and B is the divisor. For example:

Input A

1.0, 2.5, 4.25, 3.0

Input B

2.0, 2.0, 2.0, 2.0

Output (input A modulo input B)

= 1.0, 0.5, 0.25, 1.0

Modulo Node Inputs

Input

Takes the input as the dividend, or input A of the division operation. The remainder of the result of input A divided by input B is the modulo output.

Modulo

Takes the input as the divisor, or input B of the division operation. The remainder of the result of input A divided by input B is the modulo output.

Related Nodes

Vector Dot Node

Length Node

Fract Node