calculator.onl
Categories50

Big number calculator with exact decimals

Add, subtract and multiply long numbers exactly, or divide with a chosen rounding rule.

A worked example

Add one to a row of nines. Follow the carry all the way to the left.

Result1000000000000000000000Result digits22ExactnessExact
Arithmetic mode: Integers / Decimals.

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.

Operation: Add / Subtract / Multiply / Divide.

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.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Result

1000000000000000000000

Calculated from your inputs

ExactnessExact
Result digits22
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

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

InputWhat it meansExample value
Arithmetic modeArithmetic mode: Integers / Decimals.Decimals
First numberFirst 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
OperationOperation: Add / Subtract / Multiply / Divide.Add
Second numberSecond 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 divisionDecimal places for division: 0 … 100.—
RoundingRounding: Nearest, ties to even / Nearest, ties away from zero / Truncate toward zero.—

How the calculation works

  1. Add, subtract and multiply long numbers exactly, or divide with a chosen rounding rule.
  2. 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.
  3. Read the result and compare it with the diagram.
The formulaA = 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 enter
Result for this example · Result1000000000000000000000

This 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.