> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/mathematical-functions/hextobin.md).

# HEXTOBIN

Returns a binary value from a hexadecimal value.

#### Syntax

**HEXTOBIN**(*hexValue*)

1. *hexValue* - the hexadecimal value which should be converted to a binary value - ***Value type**: text*

#### Remarks

1. The function returns the binary representation of *hexValue*, as a text containing 0 and 1 (like “100101").
2. A negative *hexValue* returns a negative binary value.

**Examples**

*Example 1* - HEXTOBIN of a single value:

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-f179ec418b5eb6dd02c9ff1b4dd7ff96304fafc3%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

*Example 2* - HEXTOBIN for a range of values:

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-ac543042d1524ef4f6759e46dfc4df36750f03a4%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
