Divide

Divides one number by another.

Node id math/divide

The Divide node outputs a / b.

Inputs

NameTypeDefaultNotes
anumber0
bnumber1

Outputs

NameTypeNotes
resultnumber

Behaviour

  • Defaults. a defaults to 0 and b to 1, so with only a set the result is a.
  • Division by zero is not an error. It follows JavaScript: a positive number divided by 0 gives Infinity, a negative one -Infinity, and 0 / 0 gives NaN. These values flow on to the next nodes.
  • Multiply: the opposite operation.
  • Modulo: the remainder of a division.
  • Floor: with Divide, a whole-number division.
© 2026 Wirepaint