Skip to content

CEILING

  • x: It is the numeric expression which will be rounded up to the smallest integer that is greater than or equal to the input value.
SELECT CEILING(7.3);
8

The CEILING function in MySQL rounds up a number to the nearest integer. In this example, the function is applied to the number 7.3. The output is 8 because CEILING always rounds upwards to the next whole number, so 7.3 is rounded up to 8.