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.