---
title: hex.uint() function
description: hex.uint() converts a hexadecimal string to an unsigned integer.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/bonitoo-io/hex/uint/
estimated_tokens: 509
product: Flux
version: v0
---

# hex.uint() function

-   Flux 0.131.0+
-   View InfluxDB support

`hex.uint()` is a user-contributed function maintained by the [package author](#package-author-and-maintainer).

`hex.uint()` converts a hexadecimal string to an unsigned integer.

##### Function type signature

```js
(v: string) => uint
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### v

(Required) String to convert.

## Examples

### Convert a hexadecimal string to an unsigned integer

```js
import "contrib/bonitoo-io/hex"

hex.uint(v: "4d2")// Returns 1234

```

#### Related

-   [Work with unsigned integers](/flux/v0/data-types/basic/uint/)
