Big Integer.Factorial Method
Gets the factorial of a number.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The product of all numbers from 1 up to and including value.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static BigInteger Factorial(
int value
)
Parameters
- value Int32
- An integer.
Return Value
BigIntegerThe product of all numbers from 1 up to and including value.
Exceptions
Argument | value is less than zero. |