Special.Factorial Method
Returns the factorial of a positive integer.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The factorial of n.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static double Factorial(
int n
)
Parameters
- n Int32
- A positive integer.
Return Value
DoubleThe factorial of n.
Remarks
The factorial of a number n is the product of all integers from one up to and including n.
Exceptions
Overflow | the result is too large. |
Argument | n is less than zero. |