Skip to main content

fact ()

Returns the factorial of the specified integer.

Parameters​

$numbers
The integer to factorialize.
Type
Number

Return Value​

Number
The number that is the product of the factorialization of the given integer.

Example​

@use '@sass-fairy/math';

@debug math.fact(5);
// 120

@debug math.fact(10);
// 3628800