Table of Contents

Factorial Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/DoubleExtensions.cs

Factorial(double)

Calculates the factorial of a positive integer n denoted by n!.

public static double Factorial(this double n)

Parameters

n double

The positive integer to calculate a factorial number by.

Returns

double

The factorial number calculated from n, or PositiveInfinity if n is to high a value.

Exceptions

ArgumentOutOfRangeException

n is lower than 0.