# set-units command

The set-units command designates that
a numeric expression of 1 is equal to 1 unit.

## Syntax

```
set-units {(options}
```

## Parameter(s)

| options | u | Sets the system default. |
| --- | --- | --- |

## Example(s)

This program displays 5 for both
user exits, as there is a one-to-one correspondence between units
and the numeric expression.

```
set-units

u bp test
01 print oconv(5,’u01b6’);* Unit input-conversion user exit
02 print oconv(5,’u11b6’);* Unit output-conversion user exit
```

## See also

- [set-decimal command](https://d3codex.com/tcl/set-decimal-command/)
- [set-dozens command](https://d3codex.com/tcl/set-dozens-command/)
- [set-thousands command](https://d3codex.com/tcl/set-thousands-command/)
- [u01b6 user exit](https://d3codex.com/pickbasic-flashbasic/u01b6-user-exit/)
- [u11b6 user exit](https://d3codex.com/pickbasic-flashbasic/u11b6-user-exit/)
- [u21b6 user exit](https://d3codex.com/pickbasic-flashbasic/u21b6-user-exit/)
- [um command](https://d3codex.com/tcl/um-command/)

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