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