# Decimal Calculator

URL: https://speedycalculator.com/calculators/math/decimal/
Last updated: 2026-11-08

> The decimal calculator adds, subtracts, multiplies and divides decimal numbers, and also raises them to powers, takes roots and logarithms.

## Inputs

- Operation
- a
- b

## Results

- Result
- Rounded to 2 decimal places

## Formula

```
a + b,  a − b,  a × b,  a ÷ b,  aᵇ,  ᵇ√a,  log_a b
```

## Explanation

Decimals are fractions with denominators that are powers of ten. Arithmetic with them follows the same rules as whole numbers; the only extra care is placing the decimal point: aligning points when adding and counting decimal places when multiplying.

### How to use the Decimal Calculator

- **Operation**
- **a**
- **b**

Results update as you type, and everything is calculated in your browser.

### How it works

The calculator works in double precision and shows up to 15 significant digits, enough to see the exact result of everyday decimal sums. Floating-point values such as 0.1 + 0.2 are rounded for display.

### Inputs explained

FieldWhat to enterOperationChoose one: Addition (a + b), Subtraction (a − b), Multiplication (a × b), Division (a ÷ b) …aA numberbA number

### Example values

How the main result changes when **a** changes and everything else stays at the example values above:

aResult6.382.559.563.82512.755.115.946.37519.137.6525.510.2

## Worked example

Inputs: Operation: Multiplication (a × b); a: 12.75; b: 0.4.

Results: **Result = 5.1**; Rounded to 2 decimal places = 5.1.

## Key terms

- **Decimal place**: A digit position after the decimal point.

## FAQ

**How do I multiply decimals?**
Multiply as whole numbers and put as many decimal places in the answer as the two numbers have together: 1.2 × 0.3 = 0.36.

**How do I divide by a decimal?**
Multiply both numbers by a power of ten to make the divisor whole: 6 ÷ 0.4 = 60 ÷ 4 = 15.

**Why does 0.1 + 0.2 sometimes show 0.30000000000000004?**
Computers store decimals in binary; this calculator rounds the display to hide that.

**What does log_a b mean?**
The power you raise a to in order to get b.


## Sources

- [OpenStax: Prealgebra 2e](https://openstax.org/details/books/prealgebra-2e)
- [OpenStax: Contemporary Mathematics](https://openstax.org/details/books/contemporary-mathematics)
