Floor and ceil unlike round and trunc do not take an optional parameter for precision because their output is always an integer.
Opposite of floor function in oracle.
This function takes as an argument any numeric datatype or any nonnumeric datatype that can be implicitly converted to a numeric datatype.
The floor function returns the largest integer value not greater than a number specified as an argument.
The oracle plsql floor function returns the largest integer value that is equal to or less than a number.
Oracle floor function last update on february 26 2020 08 08 20 utc gmt 8 hours description.
Conversely the ceil function determines the smallest integer greater than or equal to a particular numeric value.
It basically rounds down to a whole number.
Note it rounds up the non integer number to the next highest value.
The floor function determines the largest integer less than or equal to a particular numeric value.
Floor returns largest integer equal to or less than n.
Description of the illustration floor gif.
The function takes any numeric or nonnumeric data type can be implicitly converted to a numeric data type as an argument.
The function returns the same datatype as the numeric datatype of the argument.
It s the opposite of the ceiling function and is often used as an alternative to round.
It returns the smallest integer greater than the value you specify.
Syntax ceiling expression example select ceiling 400 45 it will output 401.