API reference / @localizer/format-number / fixedCurrencyFormatter
Function: fixedCurrencyFormatter()
fixedCurrencyFormatter<
T>(currency,options?):ValueFormatter<T>
Defined in: fixedCurrencyFormatter.ts:34
Formats values as fixed localized currency strings.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends number | bigint | The value type, either number or bigint. |
Parameters
| Parameter | Type | Description |
|---|---|---|
currency | CurrencyCode | The currency code (e.g., 'USD', 'EUR'). |
options? | NumberFormatOptions | Optional formatting options. |
Returns
A ValueFormatter for localized currency strings.