FACTDOUBLE Function (Gnumeric)
Learn the FACTDOUBLE function in Gnumeric: Returns the double factorial of Number.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
FACTDOUBLE computes a double factorial. For a positive integer n, multiply n, n-2, n-4 and so on until reaching 1 or 2. An ordinary factorial includes every integer instead, and applying FACT twice is another different operation.
Syntax and input rules
=FACTDOUBLE(x)
x is one required nonnegative numeric argument. Ordinary nonnegative fractional inputs are truncated to an integer. Negative values return #NUM!, including negative fractions that might truncate toward zero under a different rule. The zero case is defined as 1.
Results use floating-point representation, so large products face precision and range limits. Keep computations small enough to verify. No maximum safe input or extreme-value runtime boundary is certified by this guide.
Retained example
=FACTDOUBLE(5)
The expected result is 15 because 531=15. Ordinary FACT(5) is 120 and cannot replace this calculation.
Odd and even controls
Put 0, 1, 5, 6 and 8 in A2:A6. Enter =FACTDOUBLE(A2) in B2 and fill down. Expected results are 1, 1, 15, 48 and 384.
For the even examples, 642=48 and 8642=384. The recurrence n!! = n(n-2)!! gives another check: =8*FACTDOUBLE(6) agrees with =FACTDOUBLE(8), both returning 384.
For 5.9, the result is 15 after truncation. If a counting problem requires whole numbers, validate that requirement before calling FACTDOUBLE. Built-in truncation does not make a fractional item count meaningful.
Advanced application: pair distinct items
The number of ways to divide six distinct labeled items into three unordered pairs is 5!!, or 15. The first item can pair with any of five others. Among the four remaining items, the next selected item has three partners. The last two have one pairing. Multiplication gives 531.
For eight distinct items the same argument gives 7!! = 753*1 = 105. This applies to unordered pairs without additional restrictions. It does not count ordered pairings, arbitrary selections or constrained matches.
For even inputs, the algebraic identity (2k)!! = 2^kk! provides another check. At k=3, 2^3FACT(3)=8*6=48, agreeing with FACTDOUBLE(6). Keep k and the item count distinct in the workbook so the two formulas are not confused.
Errors and practical checks
=FACTDOUBLE(-1) returns #NUM!. Nonnumeric data and upstream errors cannot supply a valid count. If a result is unexpectedly small, check whether FACT was intended or whether a fractional input was truncated.
Products grow quickly. A large displayed integer can lose exactness before reaching overflow, and formatting with zero decimal places does not guarantee exact combinatorial arithmetic. For a calculation that depends on exact large integers, verify with an exact-arithmetic method appropriate to that requirement.
These examples independently explain the products and use bounded native controls. They do not generalize runtime safety or numerical exactness to arbitrarily large arguments.
Availability and verification
Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.
- Introduced: Original introduction not established. The earliest demonstrated support in this guide is 1.12.57.
- 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.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
The executable contract is also present in the official Gnumeric 1.12.57 fn-math source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.
On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =FACTDOUBLE(5) → 15; =FACTDOUBLE(6) → 48; =FACTDOUBLE(0) → 1; =FACTDOUBLE(5.9) → 15; =FACTDOUBLE(-1) → #NUM!. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.