ceil function

The ceil function returns the smallest integer that is greater than or equal to the specified expression.

Syntax:

number ceil(n)

Semantics:

Example 1 - ceil function

SELECT ceil(n) FROM Userstocks
Value of n Output
1.34 2.0
-1.34 -1.0
pi() 4.0