API reference / @localizer/format-number / percentFormatter
Function: percentFormatter()
percentFormatter<
T>(options?):ValueFormatter<T>
Defined in: percentFormatter.ts:32
Creates a localized percentage formatter.
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
A ValueFormatter for percentage strings.