Currency @localizer/format-number 1.0.1
currencyFormatter<
T
> (options?
): UnitValueFormatter<T
, CurrencyCode>
T
extends number | bigint - The type of value to format.options
- Optional configuration of the formatter.
Use this formatter to format monetary values in various currencies efficiently.
TIP
If you prefer to use default settings, consider using a preconfigured currency formatter. It simplifies the process by providing a ready-to-use configuration for common use cases.
TIP
If the currency is predetermined, you might find the fixed currency formatter more suitable. It is optimized for scenarios where the currency does not change, offering improved performance and simplicity.