• Make a number rounded to it's nearest units (ones, thousands, millions, ...).

    Returns

    • the rounded number with its unit (e.g., "1.2k") as string.

    Parameters

    • n: number

      the number to round (e.g., 1,215)

    Returns string

Generated using TypeDoc