pub fn factorial(number: i128) -> i128
Expand description

factorial function: Takes an i128 integer number as input and returns its factorial as an i128 integer. The function uses recursion to calculate the factorial. Note that it may cause stack overflow for large input values. Panics if the input value is negative. To avoid this behavior, ensure the input value is non-negative.