factorial (integer value) ⇒ integer
Takes a value 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.
First available: Version 1.3.1
Comments
factorial (integer value) ⇒ integer
Takes a value 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.
Where to search