FIXED

Rounds a number to a specified number of decimal places and returns the result as text with optional thousands separators.

Parameter List

Syntax
FIXED(number
[decimals]
[no_commas]
)
number

The number you want to round and convert to text. For example: 1234.5678, -987.654, or A1.

[optional] decimals

The number of decimal places to display:

  • Positive number - Number of decimal places to show

  • 2 (default) - Two decimal places

  • 0 - No decimal places (integer)

  • Negative number - Round to left of decimal point

[optional] no_commas

Whether to include thousands separators:

  • FALSE (default) - Include commas as thousands separators

  • TRUE - Omit thousands separators

More details

FIXED converts a number to text format with consistent decimal places. When no_commas is FALSE or omitted, it includes thousands separators (commas). When TRUE, it omits the separators. Negative decimals parameter rounds to the left of the decimal point (e.g., -1 rounds to nearest 10). The result is always text, not a number.

Examples

FIXED(1234.5678) returns "1,234.57", rounded to 2 decimal places with commas (default).