# BIN2DEC Function

> Convert a binary number of up to 10 digits to a decimal number with BIN2DEC in TX Sheet Control: two's complement negative numbers, invalid digits and #NUM!.

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

---

Convert a binary number to a decimal number. `number` has at most 10 binary digits; the most significant of 10 digits is the sign bit, so `1111111111` returns -1 (two's complement). A number with more than 10 digits or with digits other than 0 and 1 returns `#NUM!`. TX Sheet Control takes one argument only, although the syntax line names `places`.

### Syntax

```text
BIN2DEC(number, places)
```

Category: Engineering. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=BIN2DEC(10)
```

The formula returns 2.

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:** [BETAINV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/betainv/llms-full.txt)
- **Next:** [BIN2HEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bin2hex/llms-full.txt)
