Skip to main content

Formatting functions

These functions are for number formatting.

For datetime formatting, see Displaying datetime objects. For general text formatting, see Using the script editor.

Index of formatting functions

abbreviateNumber

Abbreviates a large number and displays it with an appropriate suffix.

currency

Formats a number as a currency expression. Deprecated — superseded by currencyFormat.

currencyFormat

Formats a number as a currency expression.

formatNumber

Formats a number using the given pattern. Deprecated — superseded by numberFormat.

numberFormat

Formats a number using the given pattern or locale.

precision

Defines the display precision for a number.