Rounding Calculator

Round a number to set decimal places or the nearest unit, with floor and ceiling.

Round to nearest unit

Rounded to 2 dp
3.14
Floor (⌊x⌋)

3

Ceiling (⌈x⌉)

4

Nearest 1

3

Formula
round(x) = ⌊x · 10ⁿ + 0.5⌋ ÷ 10ⁿ for n decimal places

About this calculator

Rounding replaces a number with a nearby value that is simpler to read or store. Standard rounding goes to the nearest value, with halves rounding up. You can round to a number of decimal places or to the nearest unit such as 10, 100, or 1000.

This calculator also shows the floor (the largest integer not greater than the value) and the ceiling (the smallest integer not less than the value), which always round down and up respectively regardless of the fractional part.

Frequently asked questions

Floor always rounds down to the nearest integer, while standard rounding goes to the nearest integer, rounding 2.5 up to 3 but 2.4 down to 2.

Divide the number by 100, round to the nearest whole number, then multiply by 100. This calculator does it automatically when you pick the unit.

This tool uses round-half-up, so a value exactly halfway between two options rounds to the larger one (for example 2.5 becomes 3).

Did this calculator help you?