Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 336 Bytes

parse-uint.md

File metadata and controls

18 lines (12 loc) · 336 Bytes

parseUint

Signature

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

Description

Parses the value of string into uint256

Examples

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