--- title: hex.uint() function description: > `hex.uint()` converts a hexadecimal string to an unsigned integer. menu: flux_v0_ref: name: hex.uint parent: contrib/bonitoo-io/hex identifier: contrib/bonitoo-io/hex/uint weight: 301 --- `hex.uint()` converts a hexadecimal string to an unsigned integer. ##### Function type signature ```js (v: string) => uint ``` {{% caption %}} For more information, see [Function type signatures](/flux/v0/function-type-signatures/). {{% /caption %}} ## Parameters ### v ({{< req >}}) String to convert. ## Examples ### Convert a hexadecimal string to an unsigned integer ```js import "contrib/bonitoo-io/hex" hex.uint(v: "4d2")// Returns 1234 ```