> 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/bintohex.md).

# BINTOHEX

Returns the hexidecimal representation of a binary value.

#### Syntax

**BINTOHEX**(*binValue*)

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

#### Remarks

1. The function returns the hexidecimal representation of *binValue*, as a text in lower letters (like “ffaa88”)
2. A negative *binValue* returns a negative hexadecimal value.

**Examples**

*Example 1* - BINTOHEX 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-1d7cb47c434a782003f7dbc0061cfa3924094029%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

*Example 2* - BINTOHEX 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-11cd05c4c97d8026947240c23561a899fcb6b43d%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
