@thepalaceproject/circulation-admin
    Preparing search index...
    • Make a number rounded to it's nearest units (ones, thousands, millions, ...).

      Parameters

      • n: number

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

      Returns string

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