• Format a number value according to locale standards Intended for limited use. Consider creating a NumberFormatter object when formatting numbers in bulk.

    Parameters

    • value: string | number

      The value to format. Numbers larger than 15 digits should be passed as a string to maintain precision.

    • numberOptions: NumberOptions

      Options to apply to the formatter, including locale

    Returns string

    The formatted number

Generated using TypeDoc