Fixed currency @localizer/format-number 1.0.1
fixedCurrencyFormatter<
T
> (currency
,options?
): ValueFormatter<T
>
T
extends number | bigint - The type of value to format.currency
- The currency to use for value formatting.options
- Optional configuration of the formatter.
This formatter ensures consistent presentation of monetary values when the currency is fixed.
TIP
If the currency is not predetermined, consider using the currency formatter instead. It dynamically adapts to various currencies, making it a versatile choice for scenarios where the currency type may vary.