• Math.factorial is not available in the Lite version

Integer Math.factorial (Integer n) vs. 1.1.0 FULL ONLY

In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example,

5! = 1 x 2 x 3 x 4 x 5 = 120

To insure this function doesn't crash the users' browser, we limited the parameter n to a maximum of 170. As of version 1.2.2, if the parameter n is larger than 170, the function returns Infinity

More details about the mathematical function can be found at Wikipedia


Integer n Required vs. 1.1.0 Full+Lite
A non-negative integer between 0 to 170.


Integer Required vs. 1.1.0 Full+Lite
The factorial results of the given variable.


Using Math.factorial(n)
Stand alone function
Below is a stand alone function. You can simply copy and paste it into your project.