# HexToInteger (Any Value)

| **Name**    | ***HexToInteger***                                                                                               |
| ----------- | ---------------------------------------------------------------------------------------------------------------- |
| Syntax      | HexToInteger (String value)                                                                                      |
| Purpose     | To convert a hex value into an integer.                                                                          |
| Description | Returns an integer representing the specified value. Returns null if the value cannot be converted to an integer |
| Return Type | Integer                                                                                                          |
| Parameters  | value \[System.String] – Value to be converted                                                                   |

![](/files/2QMcUkKyVEI6gLsFUvs2)

**Example**

In this example, we are passing a valid hex value to the function transformation object using a *Variables* object.

Where,

*Value* = F

![](/files/HVuMt84ZHNs73oxK0Ltr)

In the output window, you can see that the Integer value 15 has been returned, corresponding to the provided hex value, F.

<figure><img src="/files/6FTma8Xu5TOM8L5PozCV" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.astera.com/functions/conversion/hextointeger-any-value.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.
