How this calculator works
- Step 1Readevery digitNumbers are kept as exact whole numbers.
- Step 2Work+ − × ÷ ^ modThe operation runs on all the digits.
- Step 3Shownothing roundedThe full answer, grouped for reading.
Ordinary calculators keep about 15 to 16 significant digits and round the rest. This one keeps every digit, so long answers are exact.
Worked example: 2 to the power 100
- Power
2 × 2 × … × 2 (100 times)
- Digits31
- Exact value12,67,65,06,00,22,82,29,40,14,96,70,32,05,376
A phone calculator shows about 1.2676506 × 10³⁰ and drops the rest.
Quotient and remainder
- 10²¹ ÷ 714,28,57,14,28,57,14,28,57,142 r 6Whole-number division keeps a remainder.
- Two 30-digit numbers ×60 digitsA product has about as many digits as both together.
For a negative first number, the remainder is negative too: −7 mod 2 is −1.
Assumptions and limits
- Whole numbersNo decimals or fractions.
- 5,000 digitsPer input; answers up to 1,00,000 digits.
- Towards zeroDivision rounds towards zero.
- No rootsSquare roots and logs are not supported.
Related number tools
Exact arithmetic keeps every digit. Factors and notation help make sense of huge results.
To break a large number into primes, use the prime factorization calculator, which works up to 10¹². For a compact approximate form, the scientific notation calculator writes it as a × 10ⁿ.
Common mistakes
Mistake: Trusting a phone calculator past 15 digits.
Instead: Use exact arithmetic for long numbers.
Mistake: Expecting decimals from ÷.
Instead: Read the remainder, or use long division.
Mistake: Raising to a huge power.
Instead: Answers past 1,00,000 digits are refused.
Checking the method
A separate script re-works every golden value with Python's own exact integers.
Read how we test our calculators, or browse more maths calculators.