Contact

FACT Function (Gnumeric)

Math Beginner Gnumeric

Calculate Gnumeric factorials and fractional Gamma extensions, with verified examples and negative-integer errors.

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

FACT returns x! for nonnegative integers, including 0!=1. Gnumeric also extends this function to noninteger inputs using Gamma(x+1); it does not simply truncate every fractional argument to an integer.

Supply one numerical value. Negative integers are poles and return an error, while selected negative nonintegers have a finite Gamma-extension value. The extension is mathematical and should not be mistaken for a count of arrangements of a fractional number of objects.

Syntax

FACT(x)

Worked examples

The original =FACT(5) returns 120, equal to 54321. FACT(0) returns one. The noninteger controls distinguish Gnumeric’s extension: FACT(0.5) is approximately 0.886226925452758, equal to SQRT(PI())/2; FACT(-0.5) is approximately 1.77245385090552, equal to SQRT(PI()).

FACT(3.5) is approximately 11.6317283965674. Repeated use of Gamma’s recurrence explains this as 3.52.51.50.5SQRT(PI()). FACT(-1) returns #NUM!. Keep the negative integer distinct from the allowed negative half-integer example.

Formula Expected output
=FACT(5) 120
=FACT(0) 1
=FACT(0.5) 0.8862269254527579
=FACT(-0.5) 1.7724538509055159
=FACT(-1) #NUM!
=FACT(3.5) 11.631728396567446

Advanced use

For ordinary integer combinatorics, n! counts permutations of n distinct objects. Confirm that the objects really are distinct and that all arrangements are allowed. Repeated objects or restrictions require a different counting expression.

Even valid factorials grow rapidly and can exceed floating-point range or exact integer precision. Computing ratios of large factorials directly can fail despite a moderate mathematical final answer. Use the appropriate dedicated counting function when available, and validate a small enumerated case first.

Errors and troubleshooting

A fractional result is not evidence that Gnumeric rounded the argument incorrectly. The Gamma extension is intentional. Negative integer errors should not be replaced with zero. Official NEWS 1.1.12 records extending FACT to negative noninteger values; it documents that behavior change, not FACT’s original introduction. These bounded tests do not certify extreme values or values close to poles.

Availability and verification

  • Introduced: Documented by 1.12.62; original introduction not established.
  • Historical source availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-math function module must be included and enabled.
  • Historical check: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The selected examples and error cases were recalculated with the actual Gnumeric 1.12.57 engine under C.UTF-8 on 17 October 2026. Native workbooks and observed outputs are retained. Historical 1.12.62 registration is a separate source check, not a native runtime test. The selected example below is GUI-verified; retirement and the last functioning release remain unverified.

For the operations discussed above, see COMBIN, COMBINA.

ABS ROUND ROUNDUP ROUNDDOWN MOD.

Native application screenshot

The selected cell A1 contains =FACT(5) and displays 120. The selected example uses the tutorial inputs described above. The original scalar control FACT(5) is placed in A1 in this separate screenshot worksheet. Only this selected example is GUI-verified; the other checks retain their stated engine-test scope.

Gnumeric FACT selected formula and native result

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

Official references