floor function

The floor function returns the largest integer that is less than or equal to the specified expression.

Syntax:

number floor(n)

Semantics:

Example 1 - floor function

SELECT floor(n) FROM Userstocks
Value of n Output
1.34 1.0
-1.34 -2.0
pi() 3.0