# subx command

The subx command subtracts the second
hexadecimal number provided from the first hexadecimal number provided
and displays the result as a hexadecimal number.

## Syntax

```
subx hex.number hex.number
```

## Example(s)

```
subx 400 8A
376
```

## See also

- [addx command](https://d3codex.com/tcl/addx-command/)
- [divx command](https://d3codex.com/tcl/divx-command/)
- [dtx command](https://d3codex.com/tcl/dtx-command/)
- [mulx command](https://d3codex.com/tcl/mulx-command/)
- [sub command](https://d3codex.com/tcl/sub-command/)

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