Houdini 20.0 Nodes APEX Nodes

Modulo

Applies the modulo operation to the two input values.

On this page
Since 20.0

The modulo operation calculates the remainder of the dividing the base value by the modulus value.

Note

This implementation uses the same convention as python for negative numbers, which provides convenient wrapping behaviors. For example, if it is currently 16:00 on a 24 clock, and we want to know what hour it was 30 hours ago, we could perform the following calculation (16 - 30) mod 24 = -14 mod 24 = 10 resulting in a value of 10:00.

Inputs

a: Int

The base value of the operation.

b: Int

The modulus of the operation.

Outputs

result: Int

The remainder of the operation.

See also

APEX Nodes