Home Manual Reference Source

Function

Static Public Summary
public
this function is experimental. Uses doubles, will return incorrect values for large input.

Returns the factorial of the input number _n!_ = 1 2 ... * n.

Static Public

public factorial(n: number): number source

this function is experimental. Uses doubles, will return incorrect values for large input.

Returns the factorial of the input number _n!_ = 1 2 ... * n.

Params:

NameTypeAttributeDescription
n number

The input number.

Return:

number

The factorial of the input number.