Numbers & math
Scalar
ceil()
Rounds the number up
Arguments & returns
3 overloadsceil(x)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
Used in larger rewrites 1
These examples use ceil as one part of a larger SQL translation.
Snowflakeceil()
SELECT CEIL(1.753, 2)
SELECT ROUND(CEIL(1.753 * POWER(10, 2)) / POWER(10, 2), 2)