Function formatNumber

Formats a number according to the current language and context.

  • Parameters

    • Optionalcontext: string

      The context of the number.

    Returns string

    The formatted number.