Format a number using fixed point notation.
formatDecimal(1.2345) // "1.23"formatDecimal(1.2345, 3) // "1.235"
Formatted decimal (as string)
Number to format
Optional
(optional) Number of decimal places to round to (defaults to 2)
Generated using TypeDoc
Format a number using fixed point notation.
Example
Returns
Formatted decimal (as string)