format_number() function

Returns a number formatted with the locale separator for thousands. Also truncates the number to the number of supplied places.

Syntax

format_number(number,places)

Arguments

number - is number. The number to be formatted.
places - is int. The number of decimal places to truncate the string to.

Example

format_number(10000000.332,2) → 10,000,000.33