WorksheetFunction.Fact Method

Returns the factorial of a number. The factorial of a number is equal to 1*2*3*...* number.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Fact ( _
    Arg1 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim returnValue As Double

returnValue = instance.Fact(Arg1)
double Fact(
    double Arg1
)

Parameters

  • Arg1
    Type: System.Double

    Number - the nonnegative number you want the factorial of. If number is not an integer, it is truncated.

Return Value

Type: System.Double

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace