跳到主要内容

FACTDOUBLE

Returns the double factorial of a number.

Syntax

expression.FACTDOUBLE(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value for which to return the double factorial.

Returns

number

Example

This example shows how to return the double factorial of a number.

// How to calculate a double factorial.

// Use function to calculate the double factorial of a number.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.FACTDOUBLE(123));