> 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.52-preview/clearlines-functions/mathematical-functions/dectohex.md).

# DECTOHEX

Returns the hexidecimal representation of a number.

#### 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="https://3862539772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4X6nN2wTlDsVpd8P1WDM%2Fuploads%2FfRr5BfXm230JD4BMJ4o9%2Fgrafik.png?alt=media&amp;token=87d228a3-0f09-42b0-a300-cc7ce0ac8b60" alt=""><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://3862539772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4X6nN2wTlDsVpd8P1WDM%2Fuploads%2FaZ71gGwZrMgvUKgK2eku%2Fgrafik.png?alt=media&amp;token=1b97ebfd-6980-470e-b129-fcea793bb166" alt=""><figcaption></figcaption></figure></div>
