# 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/2uL0575l4Uh4vpsdCHzU" alt=""><figcaption></figcaption></figure></div>

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/mathematical-functions/dectohex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
