Rounding replaces a number with a simpler one that is close to it: becomes 1,234.57 to the nearest hundredth, 1,235 to the nearest whole number and 1,000 to the nearest thousand. This calculator rounds to any place value, to the nearest cent, to n decimal places, to n significant figures or to the nearest multiple of any step (0.05, 0.25, 500…), and shows the two candidates and the halfway point so you can see why the answer is what it is.
It also lets you choose the rounding rule. School rounding (half up) is the default, but banking, statistics and computing often use half even ("banker’s rounding"), and invoices or engineering margins sometimes require always rounding up or down. All six common rules are available.
Unlike many online tools and spreadsheets, the arithmetic here is done on the decimal digits you type, not on binary floating-point numbers. That is why rounds correctly to 1.01 at two decimals, whereas many programs return 1.00 because 1.005 is stored internally as 1.00499999…
How to use this calculator
- Type the number. You can paste long values: up to 60 digits are kept exactly.
- Choose the precision: a place value (thousand to thousandth), nearest cent, n decimal places, n significant figures or a multiple.
- If needed, enter n or the multiple.
- Pick the rounding rule (half up unless you have a reason to change it).
- Read the rounded value, the rounding error and the two nearest candidates; the steps explain the decision.
The formula
Rounding to a step (for example for hundredths, for thousands) means choosing one of the two multiples of that surround :
| Rule | Below midpoint | Exactly halfway | Above midpoint |
|---|---|---|---|
| Half up | away from zero | ||
| Half even | the even multiple | ||
| Half down | toward zero | ||
| Ceiling | |||
| Floor | |||
| Truncate | toward zero | toward zero | toward zero |
These correspond to the rounding-direction attributes of IEEE 754 (roundTiesToAway, roundTiesToEven, roundTowardPositive, roundTowardNegative, roundTowardZero). For n significant figures, the step is , where is the position of the first nonzero digit ().
Worked example
- to the nearest hundredth: the candidates are 1,234.56 and 1,234.57; the discarded part 0.0078 is more than half of 0.01, so the answer is 1,234.57. To the nearest hundred: 1,200; to the nearest thousand: 1,000.
- to the nearest cent, half up: exactly halfway between 1.00 and 1.01, so 1.01.
- Ties under different rules: (half up) but and (half even); (half up goes away from zero).
- to 2 significant figures: 0.0046; to 3 significant figures: 10.0 (the extra digit appears in front).
- to the nearest 0.05 (cash rounding): 12.35.
- Always up: ; always down: ; truncate: .
Rounding to the nearest thousand, hundred, hundredth or cent
| Precision | Look at the digit… | 48,276.349 becomes |
|---|---|---|
| Nearest thousand | in the hundreds place (2) | 48,000 |
| Nearest hundred | in the tens place (7) | 48,300 |
| Nearest whole number | in the tenths place (3) | 48,276 |
| Nearest hundredth | in the thousandths place (9) | 48,276.35 |
| Nearest cent | in the third decimal (9) | 48,276.35 |
Rounding to the nearest cent is rounding to the nearest hundredth applied to money: always keep exactly two decimals (3.50, not 3.5). Prices, taxes and interest are usually rounded only at the final step: rounding each line of an invoice and then adding can differ by a cent or two from rounding the total, which is why some tax rules specify whether to round per line or per invoice.
Why half even exists
With half up, every exact tie moves away from zero, so when many values ending in 5 are rounded and added, the total drifts upward. Half even sends half of the ties up and half down (2.5 → 2, 3.5 → 4), which cancels that bias. It is the default in IEEE 754 binary arithmetic, in many statistical packages and in Python’s round(), and ISO 80000-1 recommends choosing the even multiple when two are equally near. For one-off school or everyday rounding, half up remains the expected rule.
Frequently asked questions
How do you round to two decimal places?
Look at the third decimal. If it is 5 or more, add one to the second decimal; otherwise leave it. Then drop everything after the second decimal. So 3.14159 → 3.14 and 2.675 → 2.68 (half up). Choose "Nearest hundredth" or "n decimal places" with n = 2.
Why does my spreadsheet round 1.005 to 1.00?
Many programs store numbers in binary, where 1.005 cannot be represented exactly and is held as 1.00499999999999989… That value is below the halfway point, so it rounds down. This calculator works on the decimal digits you type, so 1.005 is exactly halfway and rounds to 1.01 with the half-up rule.
What are significant figures?
They are the digits that carry meaning, counted from the first nonzero digit: 0.004567 has four, and to two significant figures it is 0.0046. Leading zeros never count; trailing zeros after a decimal point do (2.50 has three significant figures).
How do negative numbers round?
Half up, half down and half even are symmetric: −2.5 rounds to −3 with half up, just as 2.5 rounds to 3. Floor and ceiling are not symmetric: the floor of −7.01 is −8, its ceiling is −7. Truncation simply drops the digits, which moves toward zero.
What does rounding to the nearest 0.05 mean?
The result must be a multiple of 0.05, so it ends in .x0 or .x5. It is used for cash rounding where 1- and 2-cent coins are withdrawn (12.37 → 12.35, 12.38 → 12.40). Choose "Nearest multiple of…" and type 0.05, or any other step such as 0.25 or 500.
Sources
- IEEE 754-2019, Standard for Floating-Point Arithmetic, §4.3 Rounding-direction attributes
- ISO 80000-1:2022 Quantities and units — Part 1: General, Annex B (rounding of numbers)
- Oracle, Java SE API: java.math.RoundingMode (definitions of HALF_UP, HALF_EVEN, HALF_DOWN, CEILING, FLOOR, DOWN)
Last updated: