Skip to content

Currency
@localizer/format 1.0.1

currency ( value: number | bigint , unit: CurrencyCode )

  • value - The monetary amount to format. Can be a Number or a BigInt.
  • unit - The currency, a valid ISO 4217 currency code.

This formatter ensures locale-aware and consistent formatting of monetary values, making it suitable for presenting financial data.

Examples: