Format Number

Formats a number as a string with control over decimal places, decimal separator, and thousands grouping.

Interface

Inputs

ParameterDetailsPossible Types
Number

The number to format as a string.

Primary Input

f64
Decimal Places

The amount of digits after the decimal point. The value is rounded to fit. Set to 0 to show only whole numbers.

Default: 2

u32
Decimal Separator

The character(s) used as the decimal point.

Default: ``

String
Fixed Decimals

Always show the exact number of decimal places, even if they are trailing zeros.

Default: true

bool
Use Thousands Separator

Whether to group digits with a thousands separator.

Default: false

bool
Thousands Separator

The character(s) inserted between digit groups.

Default: ,

String
Start at 10,000

Don't group 4-digit numbers with a thousands separator (only start grouping at 10,000 and above).

Default: false

bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

String