Skip to content

API reference / @localizer/format-number / percentRangeFormatter

Function: percentRangeFormatter() ​

percentRangeFormatter<T>(options?): ValueRangeFormatter<T>

Defined in: percentRangeFormatter.ts:32

Formats a range of numbers as localized percentages.

Type Parameters ​

Type ParameterDescription
T extends number | bigintThe numeric type, either number or bigint.

Parameters ​

ParameterTypeDescription
options?NumberFormatOptionsOptional formatting options.

Returns ​

ValueRangeFormatter<T>

A ValueRangeFormatter for percentage ranges.