Oracle/PLSQL: FLOOR Function
The Oracle/PLSQL FLOOR function returns the largest integer value that is equal to or less than a number.
FLOOR Function Syntax
The syntax for the FLOOR function is:
FLOOR( number )
number is the value used to determine the largest integer value that is equal to or less than a number.
The FLOOR function can be used in the following versions of Oracle/PLSQL:
- Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
FLOOR Function Examples
The FLOOR function can be used in Oracle/PLSQL. For example:
|FLOOR(5.9)||would return 5|
|FLOOR(34.29)||would return 34|
|FLOOR(-5.9)||would return -6|