About This Calculator
The Factorial Calculator lets you compute the factorial of any non-negative integer (n!), which is the product of all positive integers less than or equal to n. This tool supports numbers from 0 to 170, beyond which the factorial result exceeds reliable numerical limits.
How It Works
- Enter a non-negative integer in the input field.
- Click the "Calculate" button.
- View the result of n! as a number.
n! = n × (n−1) × (n−2) × ... × 2 × 1
Note: 0! is defined as 1.
Frequently Asked Questions
What is a factorial?
A factorial, denoted as n!, is the product of all positive integers up to a given number n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
Why is there a limit of 170?
In JavaScript, numbers above 170! exceed the maximum safe value and are displayed as Infinity. To ensure accurate results, this calculator limits input to 170.
Can I enter decimals or negative numbers?
No. Factorials are only defined for non-negative integers. Inputs must be whole numbers 0 or greater.
What is 0! equal to?
By definition, 0! = 1. This is a standard convention in mathematics.