A little context. A clearer answer.
When this calculator is useful
When long integers nearly cancel, their difference can contain fewer digits than their sum. Change “Operation” from Add to Subtract and keep the other inputs from the worked example. The value for “Result digits” goes from 22 to 21. For a related calculation, try Significant figures calculator: count and round.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Arithmetic mode | Arithmetic mode: Integers / Decimals. | Decimals |
| First number | First number: ≤80; e±300. Up to 80 characters per number; decimal comma and e notation with exponent ±300 are accepted, without grouping separators. Integer mode rejects fractions. Addition, subtraction and multiplication are exact. Division uses 0–100 decimal places and reports whether rounding changed the value. | 999999999999999999999 |
| Operation | Operation: Add / Subtract / Multiply / Divide. | Add |
| Second number | Second number: ≤80; e±300. Up to 80 characters per number; decimal comma and e notation with exponent ±300 are accepted, without grouping separators. Integer mode rejects fractions. Addition, subtraction and multiplication are exact. Division uses 0–100 decimal places and reports whether rounding changed the value. | 1 |
| Decimal places for division | Decimal places for division: 0 … 100. | — |
| Rounding | Rounding: Nearest, ties to even / Nearest, ties away from zero / Truncate toward zero. | — |
How the calculation works
- Add, subtract and multiply long numbers exactly, or divide with a chosen rounding rule.
- Up to 80 characters per number; decimal comma and e notation with exponent ±300 are accepted, without grouping separators. Integer mode rejects fractions. Addition, subtraction and multiplication are exact. Division uses 0–100 decimal places and reports whether rounding changed the value.
- Read the result and compare it with the diagram.
A = a × 10⁻ᵖ; B = b × 10⁻ᑫ; A+B = (a × 10ᑫ + b × 10ᵖ) × 10⁻⁽ᵖ⁺ᑫ⁾; A×B = ab × 10⁻⁽ᵖ⁺ᑫ⁾A worked example
Big number calculator with exact decimals: 999999999999999999999 + 1 = 1000000000000000000000; 1/3 ≈ 0.3333333333.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Up to 80 characters per number; decimal comma and e notation with exponent ±300 are accepted, without grouping separators. Integer mode rejects fractions. Addition, subtraction and multiplication are exact. Division uses 0–100 decimal places and reports whether rounding changed the value.
Frequently asked questions
How is the result calculated?
Add, subtract and multiply long numbers exactly, or divide with a chosen rounding rule. A = a × 10⁻ᵖ; B = b × 10⁻ᑫ; A+B = (a × 10ᑫ + b × 10ᵖ) × 10⁻⁽ᵖ⁺ᑫ⁾; A×B = ab × 10⁻⁽ᵖ⁺ᑫ⁾
How should I enter the values?
Arithmetic mode, First number, Operation, Second number, Decimal places for division, Rounding. 999999999999999999999 + 1 = 1000000000000000000000; 1/3 ≈ 0.3333333333.
What are the limits?
Up to 80 characters per number; decimal comma and e notation with exponent ±300 are accepted, without grouping separators. Integer mode rejects fractions. Addition, subtraction and multiplication are exact. Division uses 0–100 decimal places and reports whether rounding changed the value.