formatNumber

Description

Converts a number into a specific desired format, such as adding commas for thousands separators or specifying decimal places.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

value

The number to be formatted.

Number

0

-

Yes

decimals

The number of decimal places.

Number

0

-

No

decimalSep

Decimals separator.

String/Text

,

-

No

thousandSep

Thousands separator.

String/Text

-

-

No

Output

DescriptionOutput Type

Returns the formatted number.

Number

Callback

N/A

Video

Coming soon.

Example

Function inputsExpected result

1 000.23

-95,123.0

Last updated