# DEC2BIN Function

> Convert a decimal number to binary text with DEC2BIN in TX Sheet Control: the range from -512 to 511, two's complement, padding with places and errors.

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

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2bin/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2bin/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2bin/#see-also)

---

## Nearby

- **Previous:** [DDB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ddb/llms.txt)
- **Next:** [DEC2HEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dec2hex/llms.txt)
