Skip to content

CEIL

  • x: This is the value to be rounded. It could be a numeric type such as INT, DECIMAL, FLOAT, or DOUBLE whose ceiling value is to be calculated. CEIL(X) function rounds the value of X up to the nearest integer that is greater than or equal to X.
SELECT CEIL(15.75);
16

The CEIL() function in MySQL is used to round a number up to its nearest whole integer. In the provided example, the number 15.75 was rounded up to 16.