Special.Factorial Method

Returns the factorial of a positive integer.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static double Factorial(
	int n
)

Parameters

n  Int32
A positive integer.

Return Value

Double
The factorial of the integer.

Remarks

The factorial of a number n is the product of all integers from one up to and including n.

Exceptions

OverflowExceptionthe result is too large.
ArgumentOutOfRangeExceptionn is less than zero.

See Also