Rounding Calculator

Round to N decimals, plus floor and ceiling.

Result —

How it works

Rounded = round(value × 10ⁿ) ÷ 10ⁿ

Rounding goes half up; floor goes toward −∞ and ceil toward +∞.

Worked example

3.14159:

  • 2 decimals → 3.14
  • 4 decimals → 3.1416
  • Integer → 3

Note that 2.5 and 3.5 may round differently in languages using banker’s rounding.

Notes and limitations

Round once, at the end; rounding every step accumulates error. In finance and statistics, decide explicitly between half-up and banker’s rounding and apply it consistently.

Home