Big Number Calculator

Exact Decimal Calculator

Add, subtract, multiply, and divide decimals using exact fractions. Avoid floating-point errors such as 0.1 + 0.2.

2 digits
Operation
Add: Adds the two numbers together.
2 digits

How do I calculate with decimals while keeping an exact fraction?

A decimal string can represent a precise written value even when the same value has no finite binary floating-point representation. This page begins with addition and lets you choose other supported arithmetic operations without changing that exact-input approach. Enter the decimal places you actually intend to use. The engine does not first reduce them to a limited set of significant digits. If a calculation produces a repeating decimal, its exact fraction remains available instead of being replaced by a finite string that only approximates it.

Method

The parser removes the decimal point and stores the resulting integer over the appropriate power of ten, then reduces common factors. Addition and subtraction align rational denominators, multiplication combines numerators and denominators, and division uses the reciprocal of a nonzero second value. Power accepts a whole-number exponent for a rational base. After arithmetic, the engine reduces the answer again. A reduced denominator containing only factors of two and five permits an exact terminating decimal; other denominators require a fraction to express the complete value finitely.

Reading the answer

Use the exact fraction or exact terminating decimal as the mathematical answer. A chosen decimal precision controls a separate rounded presentation, not the underlying calculation. More display places do not improve an uncertain source measurement, and fewer display places do not change the stored rational result. This distinction is useful when checking arithmetic involving money or measured quantities, but the calculator does not supply currency rules, tax policies, or significant-figure judgments. Those decisions depend on the purpose and must be applied separately to the exact answer.

Checks and boundaries

Not every operation in the selector accepts a fraction. Factorials, bitwise operations, GCD, LCM, combinations, permutations, and integer square roots require whole-number values. A decimal spelling that reduces to an integer is different from a genuinely fractional operand. Division by zero remains undefined regardless of the number of decimal zeroes written. The worked examples separate an exact tenths sum, a division with a repeating expansion, and a terminating fractional product. Preserve a repeating answer as a fraction if you intend to continue calculating without introducing rounding.

Worked examples

0.1 + 0.2

= 0.3

Read the operands as tenths instead of approximate binary values. Add over their common denominator and display the terminating exact sum.

Calculation steps and checks
  1. Read the first input as an exact fraction

    0.1 = 1/10

  2. Read the second input as an exact fraction

    0.2 = 1/5

  3. Combine the scaled numerators

    5 + 10 = 15

  4. Reduce the resulting fraction

    15 ÷ 50 = 0.3

1 ÷ 0.3

= 10/3

Invert the fractional divisor and reduce the result. Keep the exact fraction because its decimal expansion cannot terminate.

Calculation steps and checks
  1. Read the first input as an exact fraction

    1 = 1/1

  2. Read the second input as an exact fraction

    0.3 = 3/10

  3. Reduce the resulting fraction

    10 ÷ 3 = 10/3

12.345 × 0.006

= 0.07407

Multiply the integer numerators over their powers-of-ten denominators. Reduction preserves every significant decimal place in the written operands.

Calculation steps and checks
  1. Read the first input as an exact fraction

    12.345 = 2469/200

  2. Read the second input as an exact fraction

    0.006 = 3/500

  3. Reduce the resulting fraction

    7407 ÷ 100000 = 0.07407

Related calculators

See the accuracy checks and calculation methodology for independently specified test cases and known limits. To report a result that differs from your calculation, send the operation, both inputs, and the expected answer.