Skip to content

Returns the factorial logarithm of x. If x is less than or equal to 0, the function returns 0.

func.factorial( <x> )
func.factorial(5)
┌───────────────────┐
│ func.factorial(5) │
├───────────────────┤
120
└───────────────────┘
FACTORIAL( <x> )
SELECT FACTORIAL(5);
┌──────────────┐
│ factorial(5) │
├──────────────┤
120
└──────────────┘