# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F0lPnOWFaFivdqujSugYu%2F0.png?alt=media)

**Example**

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

Where,

*Value* = F

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FczF1OpqR7MRnw49adzj2%2F1.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FDnrxGSxiNZBAdBpnppil%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>
