@lang:num.parse
Parse a decimal string with a given number of decimals (like parseUnits).
Returns: number
Syntax
Section titled “Syntax”@lang:num.parse(value decimals)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
value | string | number | Input value |
decimals | number | Number of decimal places |
See Also
Section titled “See Also”- @num.format — inverse: format an integer with decimals
- @token:amount — token-aware unit conversion