Function formatNumberCompact

Formats a compact number according to the current language and context.

  • Parameters

    • Optionalcontext: string

      The context of the compact number.

    Returns string

    The formatted compact number.