Skip to main content
Version: Latest-4.1

ceiling

Returns values from the input arg rounded to the nearest equal or larger integer.

Syntax​

ceiling(arg)

Parameter​

arg supports the DOUBLE data type.

Return value​

Returns a value of the BIGINT data type.

Examples​

mysql> select ceiling(3.14);
+---------------+
| ceiling(3.14) |
+---------------+
| 4 |
+---------------+
1 row in set (0.00 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.