Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 329 Bytes

parse-int.md

File metadata and controls

18 lines (12 loc) · 329 Bytes

parseInt

Signature

function parseInt(string calldata stringifiedValue) external pure returns (int256 parsedValue);

Description

Parses the value of string into int256

Examples

string memory intAsString = "-12345";
int256 stringToInt = vm.parseInt(intAsString); // -12345