# parseUint

Description: parseUint cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/parse-uint.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function parseUint(
  string calldata stringifiedValue
) external pure returns (uint256 parsedValue);
```

### Description

Parses the value of `string` into `uint256`

### Examples

```solidity
string memory uintAsString = "12345";
uint256 stringToUint = vm.parseUint(uintAsString); // 12345
```
