Format a number in millions.
formatMillions(1_555_000) // "1.56"formatMillions(1_555_000, { minimumFractionDigits: 3 }) // "1.555"
Formatted number (as string)
Number to format
Optional
(optional) Number of decimal places to round to (defaults to 3)
Generated using TypeDoc
Format a number in millions.
Example
Returns
Formatted number (as string)