API reference / @localizer/format-number / fixedCurrencyRangeFormatter
Function: fixedCurrencyRangeFormatter()
fixedCurrencyRangeFormatter<
T>(currency,options?):ValueRangeFormatter<T>
Defined in: fixedCurrencyRangeFormatter.ts:34
Formats a range of numbers or bigints as a fixed currency string.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends number | bigint | The type of values to format, either number or bigint. |
Parameters
| Parameter | Type | Description |
|---|---|---|
currency | CurrencyCode | The currency code (e.g., 'USD', 'EUR'). |
options? | NumberFormatOptions | Optional formatting options. |
Returns
A ValueRangeFormatter for localized fixed currency ranges.