# DECIMAL Function

> Convert the text of a number in base 2 to 36 to a decimal number with the DECIMAL formula function of TX Sheet Control: radix, digits, errors and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > DECIMAL Function
- **216 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/decimal/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/decimal/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/decimal/llms-full.txt

---

Convert the text of a number in another base to a decimal number. `number` is the text of the number and `radix` the base, from 2 to 36; the letters A to Z stand for the digits 10 to 35, in either case. A digit that is not valid in the base, or a radix outside 2 to 36, returns `#NUM!`. The optional `min_length` is accepted but does not change the result.

### Syntax

```text
DECIMAL(number, radix, min_length)
```

Category: Math. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=DECIMAL(31,16)
```

The formula returns 49, the value of the hexadecimal number 31 (3 × 16 + 1).

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [DEC2OCT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2oct/llms-full.txt)
- **Next:** [DEGREES Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/degrees/llms-full.txt)
