Negate
DataTarget independent
math.negateFlips the sign of a number: positive becomes negative and vice versa.
Example use
For example, negate 3 to get -3, then connect the result to a numeric input.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 1
- Value
valueNumber The value operated on; supply structured data of the type shown and see the node description for its role.
Default availableDefault:0
Data outputs 1
- Result
resultNumber The result of this data operation, with its type determined by the matching inputs.
Version and node identity
Version 1.0.0
sha256:d301b3e96baaf41b143b617512a863e96cfc716445e97d5be177c0caea456a03