The oracle plsql floor function returns the largest integer value that is equal to or less than a number.
Opposite of floor function in oracle.
This post is related with oracle the ceiling function does the opposite of floor function.
This function takes as an argument any numeric datatype or any nonnumeric datatype that can be implicitly converted to a numeric datatype.
Note it rounds up the non integer number to the next highest value.
Floor and ceil unlike round and trunc do not take an optional parameter for precision because their output is always an integer.
Syntax ceiling expression example select ceiling 400 45 it will output 401.
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.
The function returns the same datatype as the numeric datatype of the argument.
It returns the smallest integer greater than the value you specify.
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.
The purpose of the oracle floor function is to return the highest integer value that is equal to or less than a number.
This oracle tutorial explains how to use the oracle plsql floor function with syntax and examples.
It s the opposite of the ceiling function and is often used as an alternative to round.
The floor function returns the largest integer value not greater than a number specified as an argument.