Example
Return the smallest integer value that is greater than or equal to 25.75:
sql
SELECT CEIL(25.75);
Definition and Usage
The CEIL() function returns the smallest integer value that is bigger than or equal to a number.
Note: This function is equal to the CEILING() function.
Syntax
text
CEIL(number)
Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A numeric value |
Technical Details
| Works in: | From MySQL 4.0 |
|---|
More Examples
Example
Return the smallest integer value that is greater than or equal to 25:
sql
SELECT CEIL(25);