API reference / @localizer/format-number / decimalFormatter
Function: decimalFormatter()
decimalFormatter<
T>(options?):ValueFormatter<T>
Defined in: decimalFormatter.ts:32
Formats numbers or bigints as localized decimal strings.
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 for decimals. |
Returns
A ValueFormatter for localized decimal strings.