FACTDOUBLE Function (OpenOffice Calc)
Learn the FACTDOUBLE function in Apache OpenOffice Calc: Returns the double factorial of Number.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
FACTDOUBLE multiplies every second positive integer down from its argument. For odd n it uses n, n-2, …, 1; for even n it uses n, n-2, …, 2. It returns a double factorial, conventionally written n!!, rather than FACT(FACT(n)) or FACT(n) squared.
Syntax and arguments
=FACTDOUBLE(number)
number is the required count. Use a nonnegative integer. The 4.1.16 Analysis add-in receives a 32-bit integer parameter and its helper accepts values from 0 through 300. The examples deliberately use explicit integers; this source-level parameter type alone is not a native test of fractional worksheet conversion. Formulas here use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=FACTDOUBLE(5) |
15 |
=FACTDOUBLE(6) |
48 |
=FACTDOUBLE(0) |
1 |
=FACTDOUBLE(1) |
1 |
=FACTDOUBLE(2) |
2 |
=FACTDOUBLE(7) |
105 |
The first formula preserves the original worked example. Its older comparable LibreOffice 25.2 check was not execution in OpenOffice. These new results are independently calculated expectations; no fresh native or GUI test is claimed.
Practical worksheet: count pairings of distinct objects
Enter 2, 4, 6 and 8 in A2:A5 for even numbers of distinct objects to divide into unordered pairs. In B2 enter =FACTDOUBLE(A2-1) and fill down. The expected numbers of pairings are 1, 3, 15 and 105. Neither the order within a pair nor the order of the pairs matters.
For four objects A, B, C and D, the three pairings are AB/CD, AC/BD and AD/BC. For six objects, choose the first object’s partner in five ways, then pair the remaining four in three ways: 5*3=15. This explains the odd-factor product rather than merely quoting a formula. Validate that A is a positive even integer; the formula is not a model for an odd leftover object.
Advanced applications
Verify even arguments. For a nonnegative integer m, (2m)!! = 2^m*m!. With m=3, =2^3*FACT(3) and =FACTDOUBLE(6) both return 48. This is a small independent identity check, not a recommendation to create huge factorial intermediates.
Verify odd arguments. For positive integer m, (2m-1)!! = FACT(2m)/(2^m*FACT(m)). With m=3, =FACT(6)/(2^3*FACT(3)) returns 15, matching FACTDOUBLE(5).
Separate four different operations. FACTDOUBLE(5)=15; FACT(5)=120; FACT(5)^2=14400; and FACT(FACT(3))=FACT(6)=720. Each formula has a different meaning. Writing n!! in explanatory prose does not mean Calc accepts that notation as a worksheet function.
Errors, edge cases and troubleshooting
Zero and one both return 1 in the pinned helper. Negative integers are rejected even though some mathematical conventions extend the notation to -1. Do not import that convention into a spreadsheet without checking the application. Values above 300 are rejected by the inspected helper; large accepted values can still have rounded floating-point representations.
A count of objects should be validated as an integer before evaluation. Do not rely on unverified coercion of decimal, text, blank or logical arguments. In a reusable input sheet, =AND(A2>=0;A2=INT(A2);A2<=300) can flag the intended numeric domain after A2 has been validated as numeric.
The pairing worksheet has a different domain from FACTDOUBLE itself: it requires an even count at least 2. Substituting a zero-object case into FACTDOUBLE(A2-1) produces a negative argument, so explicitly handle that case if the model needs it. A helper formula can be mathematically valid only on a narrower domain than its underlying function.
Related functions
Documentation and verification
See the Apache OpenOffice FACTDOUBLE reference, versioned mathematical-function help, and 4.1.16 implementation. The saved official source snapshots were re-read for this guide; their original retrieval records remain in the evidence package. Source inspection and independent arithmetic are not application execution. The lifecycle section identifies a supported release; the original introduction and final functioning release remain unestablished.