# sub command

The sub command subtracts the second
integer number provided from the first integer number provided and
displays the result as an integer number.

**Synonyms:** subd

## Syntax

```
sub number number
```

## See also

- [add command](https://d3codex.com/tcl/add-command/)
- [div command](https://d3codex.com/tcl/div-command/)
- [mul command](https://d3codex.com/tcl/mul-command/)
- [subx command](https://d3codex.com/tcl/subx-command/)

---
Source: https://d3codex.com/tcl/sub-command/ - part of the D3Codex reference.
