For the complete documentation index, see llms.txt. This page is also available as Markdown.

FormatNumber

The FormatNumber() function converts a number to text according to the specified format.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Syntax

FormatNumber(number,decimals,language)

FormatNumber(123456.7813, 2) => 123456,78 (when the currentlanguage has the comma for decimal point)

FormatNumber(123456.789, 2, en_US) => 123456.79 (rounding up)

FormatNumber(123456.789, unknownnumber) => unknown

FormatNumber(number,decimals,grouping,language)

FormatNumber(123456.7813, 2, true) => 123.456,78 (when the currentlanguage has the comma for decimal point)

FormatNumber(123456.789, 2, true, en_US) => 123,456.79 (rounding up)

FormatNumber(12345.6789, 3, false) => 12345.679 (rounding up)

FormatNumber(unknownnumber, unknownnumber, unknownboolean) => unknown

Parameters

Name
Type
Required
Description

number

numeric

☑️

a value of any type.

decimals

numeric

☑️

the number of decimals that are included in the returned text

grouping

yes/no

☑️

a boolean that indicates if large numbers are grouped (a separator is used)

language

language keyword

this parameter is used to specify the number representation according to the specified language/culture.

Last updated

Was this helpful?