🍋
Menu
Math

Factorial

Factorial (n!)

The product of all positive integers up to n (e.g. 5! = 120), used in combinatorics and probability.

التفاصيل التقنية

Factorial is applied in computing through numerical algorithms that balance precision, performance, and memory. JavaScript uses 64-bit IEEE 754 floating-point for all numbers, providing ~15-17 significant decimal digits. For exact arithmetic (financial, cryptographic), BigInt or fixed-point libraries are required. Browser-based calculators implement factorial using the same floating-point engine, making awareness of precision limitations important for correct results.

مثال

```
Factorial calculation:

  Input:  value = 42
  Apply factorial: result = f(42)
  Output: result
```

أدوات ذات صلة

مصطلحات ذات صلة