The **CEIL** is an inbuilt function in PLSQL which is used to return the smallest integer value which is either greater than or equal to the given input number. This input number might be in the fraction or in the whole number.

**Syntax:**

CEIL(number)

**Parameters Used:**

Here the parameter **number** is the input number on which CEIL function will be called.

**Return Value:**

This function returns the smallest integer value which is either greater than or equal to the given input number.

**Supported Versions of Oracle/PLSQL:**

- Oracle 12c
- Oracle 11g
- Oracle 10g
- Oracle 9i
- Oracle 8i

Let’s see some examples which illustrate the CEIL function:

**Example-1:**

DECLARE Test_Number number := 2.6; BEGIN dbms_output.put_line(CEIL(Test_Number number)); END;

**Output:**

3

In the above example, 2.6 is taken as the parameter and 3 is returned because 3 is the smallest whole number greater than 2.6

**Example-2:**

DECLARE Test_Number number := -2.6; BEGIN dbms_output.put_line(CEIL(Test_Number number)); END;

**Output:**

-2

In the above example, -2.6 is taken as the parameter and -2 is returned because -2 is the smallest whole number greater than -2.6

**Advantage:**

This function is used to find out the smallest integer value which is either greater than or equal to the given input number. This input number might be in the fraction or in the whole number.

## Recommended Posts:

- PLSQL | LOG Function
- PLSQL | INSTR Function
- PLSQL | INSTRB Function
- PLSQL | LENGTH2 Function
- PLSQL | SOUNDEX Function
- PLSQL | ASCII Function
- PLSQL | CONCAT Function
- PLSQL | COMPOSE Function
- PLSQL | CHR Function
- PLSQL | ASCIISTR Function
- PLSQL | CONVERT Function
- PLSQL | DECOMPOSE Function
- PLSQL | DUMP Function
- PLSQL | INITCAP Function
- PLSQL | LENGTHC Function
- PLSQL | LENGTHB Function
- PLSQL | LENGTH4 Function
- PLSQL | LENGTH Function
- PLSQL | LPAD Function
- PLSQL | INSTRC Function

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.