# 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                                                                   |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(201\).png)

**Example**

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

Where,

*Value* = F

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(201\).png)

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="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20(199).png" alt=""><figcaption></figcaption></figure>
