👉 In mathematics, a "factorial" is a function that represents the product of all positive integers less than or equal to a given number. For example, factorial of 5 (denoted as 5!) would be calculated as 5 x 4 x 3 x 2 x 1 = 120. The term "factorial" in this context is often used to denote the product of all positive integers less than or equal to a given number.