Formula and calculation method
Multiply the integers from 1 through the input. Zero factorial is 1.
Worked example
| Input | Example 1 | Example 2 |
|---|---|---|
| Integer (0–170) | 5 | 7 |
| Result | 120 | 5,040 |
How to use the result
Only whole numbers from 0 to 170 are supported; 0! equals 1. Large factorials are displayed with floating-point precision, not as exact arbitrary-length integers.
Why can the result become large so quickly?
An integer factorial multiplies every whole number from 1 through that integer, with 0! defined as 1. Large results exceed exact integer precision in standard floating-point arithmetic, so treat displayed large values as estimates.