CEIL
CEIL() is a synonym for CEILING().
Returns the smallest integer value not less than x.
Syntax
CEIL(x)
Arguments
Arguments | Description |
---|---|
x | The numerical value. |
Return Type
A Float64 data type value.
Examples
SELECT CEIL(1.23);
+------------+
| CEIL(1.23) |
+------------+
| 2 |
+------------+
SELECT CEIL(-1.23);
+----------------+
| CEIL((- 1.23)) |
+----------------+
| -1 |
+----------------+