Skip to content

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 ParameterDescription
T extends number | bigintThe type of values to format, either number or bigint.

Parameters

ParameterTypeDescription
currencyCurrencyCodeThe currency code (e.g., 'USD', 'EUR').
options?NumberFormatOptionsOptional formatting options.

Returns

ValueRangeFormatter<T>

A ValueRangeFormatter for localized fixed currency ranges.