Contact

FIXED Function (Gnumeric)

Text Beginner Gnumeric

Format a number as text with Gnumeric FIXED, choosing decimal places and separator behavior while retaining numeric inputs for arithmetic.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

FIXED returns a number as formatted text with a chosen decimal precision and optional thousands grouping. It is useful for labels and text exports where trailing zeros matter. It does not change the underlying input cell, and its output is not a numeric value with a display format attached.

Syntax and defaults

FIXED(num, [decimals], [no_commas])
  • num is the number to format.
  • decimals defaults to 2. Use a positive integer for fractional digits, zero for a whole number, or a negative integer to round left of the decimal point.
  • no_commas defaults to FALSE, which enables grouping. TRUE suppresses thousands separators.

Despite the argument’s name, a locale may use a grouping character other than a comma. TRUE suppresses grouping; it does not force a particular decimal separator or make a locale-independent interchange format.

Worked example: consistent text labels

Put 1234.567 in A2 and 12.5 in A3. In a locale with a decimal point and comma grouping, the expected results are:

Formula Expected text
=FIXED(A2,2) 1,234.57
=FIXED(A2,2,TRUE) 1234.57
=FIXED(A2,-2) 1,200
=FIXED(A3) 12.50

The two trailing digits in 12.50 are part of the returned string. Changing the result cell’s number format cannot recover the original numeric data or undo the rounding that created that string.

To label a measured value, use =FIXED(A3,2,TRUE)&" mm". The output is 12.50 mm in the example locale. Keep the numeric A3 value available for subsequent calculations and comparisons.

Advanced use: presentation versus calculation precision

Suppose a report needs whole-hundred display values while calculations retain the original precision. FIXED with a decimals argument of -2 makes a rounded label without replacing the source. If calculations must also use rounded values, introduce a numeric ROUND helper column instead and make the presentation reference that helper.

For text output consumed by another system, suppressing grouping can avoid an ambiguous thousands delimiter, but it does not settle the decimal separator, field delimiter, character encoding, or quoting rules. Check the actual exported file. A format such as CSV has its own escaping requirements; FIXED is only responsible for the cell’s text.

A fractional decimals argument is truncated toward zero in the pinned implementation. 2.9 therefore requests two decimal places. Prefer whole-number arguments so that a reviewer can read the intended precision directly.

Errors and troubleshooting

  • =FIXED(1,128) returns #VALUE!. The implementation truncates decimals and rejects a resulting value at or above 128.
  • If totals omit formatted cells, inspect their type and calculate from the original numeric column.
  • If the separator is unexpected, check the formatting locale. The no_commas flag controls grouping only.
  • If FIXED(A2,-2) returns a rounded hundred, that is intentional: a negative decimals argument does not request a negative number of visible fractional digits.
  • Do not compare rounded labels as a substitute for comparing measurements. Two distinct inputs can yield identical FIXED strings.

For ordinary worksheets where numbers only need to look consistent, use a number format instead of converting every value to text. FIXED is most helpful when text is the desired output type.

Version and verification

The syntax, defaults, text result, and precision limit here are based on Gnumeric 1.12.57 source retrieved on 17 October 2026. The official release notes list FIXED among newly implemented functions in Gnumeric 0.19. No retirement is inferred. The displayed examples, negative and fractional precision, and precision guard were recalculated in Gnumeric 1.12.57 under C.UTF-8, which produced the punctuation shown. Other locales were not tested. The selected no-grouping example was additionally displayed in the actual application, as shown below.

TEXT allows an explicit format pattern, ROUND keeps a rounded result numeric, and VALUE interprets supported numeric text.

Official references

Native application screenshot

This separate screenshot worksheet uses A2 = 1234.567. In B2, =FIXED(A2,2,TRUE) returns 1234.57. The screenshot layout is independent of the cell positions in the earlier tutorial. Only this selected example is GUI-verified; the other checks retain their stated engine-test scope.

Gnumeric FIXED example showing selected formula and result

Actual Gnumeric 1.12.57 application, captured 17 October 2026. GUI locale was not independently recorded.