WorksheetFunction.FactDouble Method
Returns the double factorial of a number.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function FactDouble ( _
Arg1 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim returnValue As Double
returnValue = instance.FactDouble(Arg1)
double FactDouble(
Object Arg1
)
Parameters
Arg1
Type: System.ObjectNumber - the value for which to return the double factorial. If number is not an integer, it is truncated.
Return Value
Type: System.Double
Remarks
If number is nonnumeric, FactDouble returns the #VALUE! error value.
If number is negative, FactDouble returns the #NUM! error value.
If number is even:
Figure 1: Equation for even
If number is odd:
Figure 2: Equation for odd