• Format a number value to currency according to locale standards and currency ISO code Intended for limited use. Consider creating a CurrencyFormatter object when formatting currency values in bulk.

    Parameters

    • value: string | number

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

    • currencyOptions: CurrencyOptions

      Options to apply to the formatter, including locale and currency ISO code

    Returns string

    The formatted currency

Generated using TypeDoc