Skip to content

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 ParameterDescription
T extends number | bigintThe value type, either number or bigint.

Parameters

ParameterTypeDescription
options?NumberFormatOptionsOptional formatting options for decimals.

Returns

ValueFormatter<T>

A ValueFormatter for localized decimal strings.