API reference / @localizer/format-number / currencyFormatter
Function: currencyFormatter()
currencyFormatter<
T
>(options?
):UnitValueFormatter
<T
,CurrencyCode
>
Defined in: currencyFormatter.ts:33
Formats currency values using localization.
Type Parameters
Type Parameter | Description |
---|---|
T extends number | bigint | The value type, either number or bigint. |
Parameters
Parameter | Type | Description |
---|---|---|
options? | NumberFormatOptions | Optional formatting options. |
Returns
UnitValueFormatter
<T
, CurrencyCode
>
A UnitValueFormatter
for localized currency strings.