StatGardenREF. DESK
Calculators/Maths/Rounding & significant figures
Maths

Rounding & significant figures calculator

Round to decimals, significant figures or a nearest step.

What this calculator does

Rounding controls how much precision a number carries. Decimal places fix the digits after the point; significant figures fix the count of meaningful digits regardless of scale. The second is usually the right choice in science and engineering, because it stays consistent whether you are measuring metres or micrometres.

Rounding to a nearest step handles the cases where neither applies: pricing to the nearest five cents, time to the nearest quarter hour, or measurements to the nearest sixteenth. All three modes are shown together, along with floor, ceiling and truncation.

The formula

FormulaRound to n s.f.: scale = 10^(n − 1 − ⌊log₁₀|x|⌋); result = round(x·scale)/scale

Rounding to significant figures works by scaling the number so the desired digits sit before the decimal point, rounding there, then scaling back. The scale factor is derived from the order of magnitude, which is why the method works identically for very large and very small values.

TermMeaning
Decimal placesDigits kept after the decimal point.
Significant figuresMeaningful digits counted from the first non-zero one.
FloorRound down to the next whole number.
CeilingRound up to the next whole number.
TruncateDiscard everything after the point, without rounding.

The inputs explained

FieldWhat to enter
NumberThe number to round.
Decimal placesHow many digits to keep after the decimal point.
Significant figuresHow many significant figures to keep, counted from the first non-zero digit.
Round to nearestThe step to round to: 0.05 for five-cent pricing, 0.25 for quarter hours, 5 for the nearest five.

When to use it

Reporting a measurement

Significant figures communicate precision honestly. Writing 12.7 rather than 12.70 says something real about how the measurement was taken.

Pricing to a currency step

Where one and two cent coins have been withdrawn, cash totals round to the nearest five cents. Set the step to 0.05.

Rounding time

Timesheets often round to the nearest quarter hour. A step of 0.25 handles it directly.

Understanding floor and ceiling

Floor always goes down, ceiling always up, regardless of the digit that follows. They matter when the answer must be a whole number of items: you cannot buy 3.2 tins of paint.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Rounding pi to different precisions

The same number rounded to varying numbers of decimal places, with the significant-figure and step results alongside.

x = 3.14159265
Decimal placesRoundedTo 3 sig figsFloor · ceiling
033.143 · 4
13.13.143 · 4
23.143.143 · 4
33.1423.143 · 4
43.14163.143 · 4
63.1415933.143 · 4
Three decimal places gives 3.142, the value most commonly used in schoolwork. Only the first column changes here: the significant figures result is fixed at three throughout.

Significant figures across different magnitudes

The strength of significant figures is that they behave consistently regardless of scale.

Rounded to 3 significant figures
NumberTo 3 sig figsTo 2 decimal places
0.00047360.0004740.00
0.47360.4740.47
47.3647.447.36
473647404736.00
473600474000473600.00
4736000047399999.9999999947360000.00
Three significant figures preserves the same relative precision at every scale, while two decimal places destroys small numbers entirely and does nothing at all to large ones.

Questions

What is the difference between decimal places and significant figures?

Decimal places count digits after the point; significant figures count meaningful digits from the first non-zero one. For 0.004736, two decimal places gives 0.00 while two significant figures gives 0.0047: the second preserves the information.

How do I count significant figures?

Start at the first non-zero digit and count every digit after it, including zeros between digits. Leading zeros never count; trailing zeros after a decimal point do.

What happens with a 5 exactly halfway?

This calculator rounds half away from zero, the convention taught in most schools. Some fields use banker’s rounding, which rounds half to the nearest even digit to avoid accumulating bias across many roundings.

What is the difference between truncating and rounding down?

They are the same for positive numbers. For negatives they differ: truncating −2.7 gives −2, while the floor gives −3, since the floor always moves toward negative infinity.

How many significant figures should I report?

No more than your least precise measurement justifies. Reporting a result to six figures when the inputs were measured to two implies a precision that does not exist.

For very large or small values, see scientific notation. For fractional forms, use the decimal to fraction converter.