Factorial Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Factorial(double)
Calculates the factorial of a positive integer n denoted by n!.
public static double Factorial(this double n)
Parameters
ndoubleThe positive integer to calculate a factorial number by.
Returns
- double
The factorial number calculated from
n, or PositiveInfinity ifnis to high a value.
Exceptions
- ArgumentOutOfRangeException
nis lower than 0.