WorksheetFunction.FactDouble(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the double factorial of a number.
public:
double FactDouble(System::Object ^ Arg1);
public double FactDouble (object Arg1);
Public Function FactDouble (Arg1 As Object) As Double
Parameters
- Arg1
- Object
Number - the value for which to return the double factorial. If number is not an integer, it is truncated.
Returns
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