Returns the factorial of an integer.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Fact(
	int n
)
Visual Basic (Declaration)
Public Shared Function Fact ( _
	n As Integer _
) As Double
Visual C++
public:
static double Fact(
	int n
)

Parameters

n
Type: System..::.Int32
An int value.

Return Value

A double value specifying the factorial of n, n!. If x is negative, the result is NaN.

See Also