Back to functions

factorial


factorial

Calculates the factorial of a number.


Usage: nerdamer("factorial(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

EXAMPLES:
var x = nerdamer('factorial(5)').evaluate();
console.log(x.text());
x = nerdamer('factorial(9.1)').evaluate();
console.log(x.text());
OUTPUT:
Back to functions