Why a big number calculator?
Excel keeps 15 digits of precision. Multiply two 30-digit numbers there and only the first 15 digits of the answer can be right. Here every digit is kept: the default example has 60 digits, all of them right. Decimals stay exact too: 0.1 + 0.2 is exactly 0.3.
Source Microsoft Support · Excel specifications and limits (number precision: 15 digits) ↗
How the big number calculator works
Each number is read straight from its digits into an exact whole number or fraction, so nothing is rounded along the way. An answer is exact whenever its decimal ends within 100 places; one that goes on forever, like 1 ÷ 3 or √2, is rounded to 100 decimal places, half away from zero. Answers can have up to 10,000 digits.
Here it is with your numbers:
- Read a and b digit by digit, as whole numbers and exact fractions, so nothing is rounded on the way
- Work out a × b: the answer ends, so every digit is shown
- The answer has 60 digits, which is 1.2193 × 10⁵⁹ in scientific notation
It means 1234567890…567890 (30 digits) × 9876543210…543210 (30 digits) is 121,932,63…26,900 (60 digits) exactly.
Source ECMAScript Language Specification · 6.1.6.2 The BigInt Type ↗
Big number examples
| Question | Answer |
|---|---|
| 2¹⁰⁰ | 1,267,650,600,228,229,401,496,703,205,37… |
| 0.1 + 0.2 | 0.3 |
| 1 ÷ 7 | 0.14285714285714285714285714285714285714… |
| √2 | 1.41421356237309504880168872420969807856… |
| 25! | 15,511,210,043,330,985,984,000,000 |
Modulo gives what is left after taking whole b’s out of a, with the sign of b, the same as our Modulo Calculator: −7 mod 3 is 2.
FAQs
How to represent extremely large numbers?
Use scientific notation: a number from 1 up to 10 times a power of 10. 2¹⁰⁰ is 1,267,650,600,228,229,401,496,703,205,376, which is about 1.2677 × 10³⁰. The calculator shows both.
Source OpenStax Prealgebra 2e · 10.5 Integer Exponents and Scientific Notation ↗
How to multiply very large numbers?
By long multiplication: multiply by each digit of the bottom number in turn, shift each row one place left, and add the rows. The calculator does the same on every digit, so a 30-digit number times a 30-digit number gives all 60 digits.
Source OpenStax Prealgebra 2e · 1.4 Multiply Whole Numbers ↗
How do computers evaluate huge numbers?
Spreadsheets such as Excel keep 15 digits. For more, programs use whole numbers of any size: JavaScript’s BigInt “may be any size”, and its operations are designed to give exact answers. This calculator uses BigInt.
Source ECMAScript Language Specification · 6.1.6.2 The BigInt Type ↗
Sources
- Microsoft Support: Excel specifications and limits (number precision: 15 digits)
- ECMAScript Language Specification: 6.1.6.2 The BigInt Type
- OpenStax Prealgebra 2e: 10.5 Integer Exponents and Scientific Notation
- OpenStax Prealgebra 2e: 1.4 Multiply Whole Numbers