Skip to content

Function: numberFormat() ​

numberFormat(value, decimals?, locale?): string

Defined in: src/formatters.ts:337

Format a number with grouped thousands and decimal point.

Parameters ​

value ​

number

The number to format

decimals? ​

number = 2

The number of decimal points

locale? ​

string = 'en-US'

The locale to use for formatting

Returns ​

string

The formatted number

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.