Math

Modulus

Operators

Divides two numbers and returns only the remainder.

Docs for v2.1.16, the latest version.

ID

math-operators-modulus

Group

Operators

Plugin

Math

Keywords

div
/
mod
%
/[/]+[-]?[\d.]+$/

Modulus

Operators

2 inputs, 1 output

Ports

Inputs

2

What the node takes in, from wires or typed values.

A

Number

First number for modulo (dividend)

B

Number

Second number for modulo (divisor)

Outputs

1

What the node gives out, to wire into other nodes.

Number

Number

The remainder of A/B

Creation method#

There are two options for creating a Modulus node.#

  • The first way to create a Modulus node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • div , / , mod , %
    • / ( Any numeric value that will become the default value for port B ).
  • The second way is to select a Modulus node from the menu that opens from the top left.
    • Menu > Math > Operators > Modulus

Steps#

  • Create a Modulus node.
  • Connect the first number for modulo (dividend) to the first port.
  • Connect the second number for modulo (divisor) to the second port.

See also#

Multiplication
Addition
Subtraction
Division
Integer Division

History

First documented in v2.1.16

Oct 20, 2026

Versions before it were published before changes were recorded.