> For the complete documentation index, see [llms.txt](https://wiki.thescriptersguild.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.thescriptersguild.com/scripting/nodes/math/subtract.md).

# Subtract

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-99c571f5dfc06c7771909ade8a75b35abfa54fbc%2Fsubtract.png?alt=media)

## Description

Returns the difference between the two input values

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input     | Type   | Required | Description                          |
| --------- | ------ | -------- | ------------------------------------ |
| Operand A | Number | Yes      | Number to subtract other input from. |
| Operand B | Number | Yes      | Number to subtract from other input. |

## Outputs

| Output | Type   | Description                                        |
| ------ | ------ | -------------------------------------------------- |
| Result | Number | The result of Operand B subtracted from Operand A. |

\
\
**Contributors**

AddiCt3d 2CHa0s
