# OCT2DEC Function

> Convert an octal number to decimal with the OCT2DEC formula function of TX Sheet Control: up to 10 digits, two's complement negatives and #NUM! errors.

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

---

Convert an octal number to decimal. `number` is an octal number of up to 10 digits; negative numbers are written in two's complement, so 7777777770 returns -8. OCT2DEC takes one argument; a second argument returns `#VALUE!`. A number that is not octal or has more than 10 digits returns `#NUM!`.

### Syntax

```text
OCT2DEC(number, places)
```

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

Available for supported offline calculation.

### Examples

```text
=OCT2DEC(10)
```

The formula returns 8.

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:** [OCT2BIN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/oct2bin/llms-full.txt)
- **Next:** [OCT2HEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/oct2hex/llms-full.txt)
