Format a number as an integer, rounding to the closest integer if necessary.
formatInteger(1.9) // "2"formatInteger(1.1) // "1"formatInteger(15999) // "15,999"
Formatted number (as string)
Number to format
Optional
Generated using TypeDoc
Format a number as an integer, rounding to the closest integer if necessary.
Example
Returns
Formatted number (as string)