Syntax
factorial(integer)
Description
The factorial() function returns the product of all the numbers between 1 and n, where n must always be positive values. Please note that 0! is a special case, and the result of 0! is 1.
Example
include("math")
println(factorial(5))
println(factorial(0))
120
1