🌐 EN

🔢 Rounding Calculator

Enter a number and decimal-place count to compare rounding, ceiling, floor, and truncation.

Original Number
—
Rounded — Ceiling — Floor — Truncate —

Inputs and checks

  • Enter a number, including a negative or fractional value if needed, and choose the number of decimal places. The default is 2 places.
  • Decimal places must be a whole number from 0 through 10. The number itself has no stated fixed range; ordinary finite values are preferable.
  • The results update as you type, and Calculate also runs them. No unit selection is involved.
  • Outputs remove unnecessary trailing zeros, so choosing two places does not guarantee two printed digits after the decimal point.

Reading the result

  • Nearest rounding uses the closest value at the selected decimal place. Ceiling moves toward positive infinity, floor toward negative infinity, and truncation removes extra digits toward zero.
  • These directions are especially different for negative numbers: floor becomes more negative, while ceiling and truncation move toward zero for a negative value with discarded digits.
  • Invalid numbers or place counts outside 0 through 10 show dashes. This tool does not round to tens or hundreds or use significant-figure mode; ordinary computer-number precision applies.

Examples

Round a positive decimal

Input
Number: 3.14159; decimal places: 2
Result
Nearest: 3.14; ceiling: 3.15; floor: 3.14; truncation: 3.14
How to check it
At two places, the scaled number is 314.159: nearest 314, ceiling 315, floor 314, truncation 314.

Round a negative decimal

Input
Number: -3.14159; decimal places: 2
Result
Nearest: -3.14; ceiling: -3.14; floor: -3.15; truncation: -3.14
How to check it
At two places, -314.159 becomes -314 for nearest, ceiling, and truncation, but -315 for floor.

Frequently asked questions

Why are ceiling and floor different for negative numbers?
Ceiling moves toward positive infinity; floor moves toward negative infinity, even for negative values.
Can I round to the nearest hundred?
No. The control chooses decimal places from 0 to 10, not hundreds or tens.
Why did the result lose its final zeros?
The tool removes trailing zeros; they are not kept just to fill the selected decimal places.