How to Use This Calculator
- Choose an operation: +, −, ×, ÷, exponent (xʸ), root (ʸ√x), or logarithm (log).
- Enter the two numbers. The field labels change to match the operation — for example Base and Exponent for powers.
- Read the result. An = sign means the answer is exact; ≈ means it was rounded to 4 decimal places.
- Follow the step-by-step solution below the result to see how the answer was worked out.
Adding and Subtracting Decimals
Line up the decimal points first. If one number has fewer decimal places, pad it with zeros so both numbers have the same number of digits after the point. Then add or subtract as whole numbers and bring the decimal point straight down.
Example: 2.75 + 1.4
2.75
+ 1.40
------
4.15
Subtraction works the same way: 5.2 − 1.75 becomes 5.20 − 1.75 = 3.45.
Multiplying Decimals
You don’t need to line up the decimal points when multiplying.
- Multiply the numbers as if there were no decimal points.
- Count the decimal places in both factors together.
- Move the decimal point that many places to the left in the product.
Example: 2.5 × 0.37 → 25 × 37 = 925 → 1 + 2 = 3 decimal places → 0.925
Dividing Decimals
Division is easiest when the divisor is a whole number. Move the decimal point in the divisor to the right until it is one, then move the dividend’s decimal point the same number of places. Both numbers are multiplied by the same power of 10, so the quotient doesn’t change.
Example: 7.5 ÷ 0.25 → 750 ÷ 25 = 30
Some divisions never end. A quotient terminates only when the simplified denominator has no prime factors other than 2 and 5, so 1 ÷ 8 = 0.125 ends but 1 ÷ 3 = 0.3333… repeats. The calculator rounds repeating results to 4 decimal places and says so in the solution.
Exponents, Roots, and Logarithms with Decimals
Exponents. A whole-number exponent means repeated multiplication: 1.5² = 1.5 × 1.5 = 2.25. A negative exponent means the reciprocal: 0.5⁻² = 1 ÷ 0.5² = 4. A decimal exponent is computed through the natural logarithm: 1.4^2.3 = e^(2.3 × ln 1.4) ≈ 2.1682.
Roots. A root is a fractional power: the root of degree b of a equals a^(1/b). So √2.25 = 2.25^(1/2) = 1.5. Odd roots of negative numbers are real (∛−0.008 = −0.2), but even roots of negative numbers are not.
Logarithms. To find a logarithm with any base, use the change-of-base formula:
log_b(a) = ln a ÷ ln b
Example: log₂.₂(13.8) = ln 13.8 ÷ ln 2.2 ≈ 2.624669 ÷ 0.788457 ≈ 3.3289
When the answer is a whole number, such as log₂ 8 = 3, the calculator checks it exactly and shows it with an = sign.
Why 0.1 + 0.2 Isn’t Always 0.3 on a Computer
Most calculators and programming languages store numbers in binary floating point. Many everyday decimals, including 0.1 and 0.2, have no exact binary form, so they are stored as very close approximations. Adding them gives 0.30000000000000004 instead of 0.3.
This calculator keeps addition, subtraction, multiplication, whole-number powers, and terminating divisions exact by working with the decimal digits you typed, just as you would on paper. Only results that genuinely can’t be written as a finite decimal are rounded.
Sources
- Python Software Foundation. Floating-Point Arithmetic: Issues and Limitations.
- Wikipedia. Decimal.
- Wikipedia. Repeating decimal.
- Wikipedia. Logarithm — Change of base.