Big Number Calculator — quick guide
1) Core idea
Do exact integer math on huge values using BigInt: basic ops, powers, factorial, Fibonacci, and GCD.
2) How this tool works
- Inputs are parsed as strings → converted to BigInt.
- Operations: +, −, ×, ÷ (truncates), mod, a^b, n!, F(n), gcd(a,b).
- Output stays exact; optional grouped formatting for readability.
3) Sanity checks
- gcd(a,0) = |a|; gcd(0,0) = 0 in this tool.
- 0! = 1; 1! = 1.
- Fibonacci(0) = 0; Fibonacci(1) = 1.
4) Shortcuts that help
- Use GCD before simplifying ratios of huge integers.
- For very large factorials/powers, copy result instead of rendering fully on screen.
- Turn on "group digits" for quick visual scanning.
5) Common pitfalls
- BigInt doesn’t support decimals; division is integer-only.
- Exponent must be a non-negative integer for BigInt power.
- Whitespace or commas in inputs cause parse errors—enter plain digits and an optional leading minus.
6) Micro-examples
- Factorial: 20! = 2,432,902,008,176,640,000.
- Power: 123^10 is exact with BigInt, no floating-point drift.
- GCD: gcd(48,18) = 6; gcd(10^18, 10^12) = 10^12.
7) Mini-FAQ
- Negative numbers? Supported for most ops except factorial and Fibonacci index.
- Performance? Extremely large exponents/factorials can be slow—be patient.
- Formatting? Toggle digit grouping to improve readability; content remains exact.
8) Action tip
Pick the operation first, then enter clean integer inputs only. For huge outputs, use the copy button to avoid UI slowness.