factorial

Calculates the factorial of a KBigInteger (n!). The factorial of n is the product of all positive integers less than or equal to n.

Return

The factorial of n (n!)

Parameters

n

The KBigInteger to calculate the factorial of

Throws

if n is negative