Subtract
Subtracts one number from another.
Node id math/subtract
The Subtract node outputs a - b.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | number | 0 | |
| b | number | 0 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- Defaults. Both inputs default to 0: with only
bset, the result is-b, like Negate. - Invalid math. Subtracting
Infinityfrom itself gives NaN, with no error.