Predefined function reference
factorial
A reference entry for factorial
factorial (integer value) ⇒ integer
Takes a value, n, as an integer and returns it's factorial, that is n!. If n is ≥ 40 it will return -1 as it would result in an arithmetic overflow.