Policies & Guidelines

FACTORIAL

Factorial

Description

Returns the factorial of the given number, i.e. value of the mathematical notation _n!_.

Function signature

FACTORIAL(number: Number) => Number

Parameter

Description

Number

Number to calculate factorial

Examples

Formula

Return value

FACTORIAL(1)

1

FACTORIAL(4)

24

FACTORIAL(0)

1