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

# DECTOHEX

#### Syntax

**DECTOHEX**(*decValue*)

1. *decValue* - the decimal value which should be converted to a hexadecimal value - ***Value type**: number*

#### Remarks

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

**Examples**

*Example 1* - DECTOHEX of a single value:

<div align="left"><figure><img src="/files/knOP60CASh6TVsCUNwmE" alt=""><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="/files/jIemVgVAU48Beat5LpFC" alt=""><figcaption></figcaption></figure></div>
