Whole numbers without rounding

Calculate with numbers
too big for a calculator

Add, subtract, multiply, divide with a remainder, raise to a power, find a greatest common divisor, take a factorial or work modulo m, on whole numbers of up to 2000 digits, with every digit exact.

Enter your figures and read the result

Whole numbers only. The worked example is 2 to the power 100. Saved on this device only.

Loading Arbitrary Precision Arithmetic Calculator. If nothing appears, turn on JavaScript.

What you get

Enrichment · STEM ExplorationsOpen to everyone · no sign-in

What you finish with
A worked-out result for your own entry (a headline figure, tiles, tables and a drawing where one helps), as a printout, a spreadsheet (.csv) or a saved file.
Who it is for
Students exploring large numbers, number theory and cryptography, and teachers who want exact answers a standard calculator cannot give.
Format
Browser tool for a phone, tablet or computer: type or paste, the result updates as you type. Print, spreadsheet (.csv), save to a file and open it again.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The STEM Explorations space in Caveat Enrichment.
Support
Questions about access, an order or a correction: team@caveatacademic.com.

How to use it

  1. Load the worked example to see how it reads, or start with your own entry.
  2. Type or paste into the fields; the result updates as you type.
  3. Read the headline, the tiles and the tables.
  4. Try a second case from the buttons above the fields.
  5. Print the result, download a spreadsheet or save the entry to a file.

Open the calculator

How it works

The worked example from the operation to the exact 31-digit answer.

Why exactness matters

Ordinary calculators keep about 15 significant digits, so 2 to the power 100 shows as 1.26765e30 and the rest is lost. For divisibility, remainders and cryptography every digit counts, and exact arithmetic keeps them all.

Modular powers

To find 3 to the power 200 mod 13 the page squares and reduces repeatedly instead of building the huge power. The answer is 9, and you can check it: powers of 3 repeat every 3 steps mod 13, and 200 mod 3 is 2.

Sources

  1. Knuth, D. E. The Art of Computer Programming, Volume 2: Seminumerical Algorithms, Addison-Wesley, chapter 4, Arithmetic.
  2. Rosen, K. H. Discrete Mathematics and Its Applications, McGraw-Hill, sections on integer representations, the Euclidean algorithm and modular exponentiation. Worked values were checked independently.

The worked examples are invented for illustration. What you type is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.