Format a number in billions.
formatBillions(1_888_000_000) // "1.88"formatBillions(1_888_000_000, { minimumFractionDigits: 3 }) // "1.888"
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 billions.
Example
Returns
Formatted number (as string)