# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/V1aDEJeAxwL4hU7wzhzQ/0.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/YtlzDBL05nI013omWBtg/1.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/HTr9bCKP0WrnMbA3fgbg/2.png" alt=""><figcaption></figcaption></figure>
