> 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

#### 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="/files/o420a7ntH9Tv7X36CFnz" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/Dd6JDC70fhi6DH6Cqw7T" alt=""><figcaption></figcaption></figure>
