Divide
Divides one number by another.
Node id math/divide
The Divide node outputs a / b.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | number | 0 | |
| b | number | 1 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- Defaults.
adefaults to 0 andbto 1, so with onlyaset the result isa. - Division by zero is not an error. It follows JavaScript: a positive
number divided by 0 gives
Infinity, a negative one-Infinity, and0 / 0gives NaN. These values flow on to the next nodes.