# u21b6 user exit

The u21b6 user exit returns a numeric
value representative of the current unit setting defined by the TCL set-units, set-dozens, set-decimal, or set-thousands commands.

## Syntax

```
x = oconv(’’, "u21b6")
```

## Parameter(s)

| 0 | Units |
| --- | --- |
| 1 | Dozens |
| 2 | Decimal |
| 3 | Thousands |

## Example(s)

```
:set-dozens
:u bp test
01 print oconv(5,"u21b6")
```
This program prints the value 1.

## 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/)
- [set-units command](https://d3codex.com/tcl/set-units-command/)
- [um command](https://d3codex.com/tcl/um-command/)

---
Source: https://d3codex.com/pickbasic-flashbasic/u21b6-user-exit/ - part of the D3Codex reference.
