About the Rounding
Nearest-integer rounding selects the closest whole number according to the PHP rounding behavior used by the current engine.
Floor always moves toward negative infinity, while ceiling always moves toward positive infinity.
Round a number to the nearest integer and compare it with its floor and ceiling values.
Nearest-integer rounding selects the closest whole number according to the PHP rounding behavior used by the current engine.
Floor always moves toward negative infinity, while ceiling always moves toward positive infinity.
| Number | 12.56 |
| Nearest Integer | 13 |
| Floor | 12 |
| Ceiling | 13 |
The nearest integer is 13, the floor is 12, and the ceiling is 13.
Try this example →| Number | -3.2 |
| Nearest Integer | -3 |
| Floor | -4 |
| Ceiling | -3 |
The calculator also shows floor and ceiling for a negative number.
Try this example →Floor is the greatest integer less than or equal to the number.
Ceiling is the smallest integer greater than or equal to the number.
Not with the current calculator formula engine; this calculator intentionally provides engine-compatible nearest-integer rounding.