This Oracle tutorial explains how to use the Oracle/PLSQL CEIL function with syntax and examples.
The Oracle/PLSQL CEIL function returns the smallest integer value that is greater than or equal to a number.
The syntax for the CEIL function in Oracle/PLSQL is:
CEIL( number )
The value used to find the smallest integer value.
The CEIL function returns an integer value.
The CEIL function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle CEIL function examples and explore how to use the CEIL function in Oracle/PLSQL.
For example:
CEIL(32.65)
Output: 33
CEIL(32.1)
Output: 33
CEIL(32)
Output: 32
CEIL(-32.65)
Output: -32
CEIL(-32)
Output: -32