# BASE Function

> Convert a number to text in a base from 2 to 36 with the BASE formula function of TX Sheet Control: radix, padding with min_length, truncation and #NUM! errors.

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

---

Convert a number to its text representation in another base (radix). `number` is a whole number from 0 up to 2^53 (exclusive); decimals are truncated. `radix` is the base, from 2 to 36, with the letters A to Z as the digits above 9. `min_length` pads the result with leading zeros to at least that many characters, up to 255. Values outside these ranges return `#NUM!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

The formula returns `1F`, 31 in hexadecimal.

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:** [BAHTTEXT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bahttext/llms-full.txt)
- **Next:** [BESSELI Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/besseli/llms-full.txt)
