# OCT2BIN Function

> Convert an octal number to binary with OCT2BIN in TX Sheet Control: the valid range, two's complement negatives, padding with places and #NUM! errors.

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

---

Convert an octal number to binary. `number` is an octal number of up to 10 digits; negative numbers are written in two's complement, so the valid range is 7777777000 (-512) to 777 (511). `places` is the number of characters of the result, padded with leading zeros. A number that is not octal or is out of range, or a `places` too small for the result, returns `#NUM!`.

### Syntax

```text
OCT2BIN(number, places)
```

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

Available for supported offline calculation.

### Examples

```text
=OCT2BIN(10)
```

The formula returns `1000`, because octal 10 is 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:** [NUMBERVALUE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/numbervalue/llms-full.txt)
- **Next:** [OCT2DEC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/oct2dec/llms-full.txt)
