Synopsis
number
floor(number x
)
The floor( )
function returns the greatest integer less-than or
equal to x
. For example,
floor(3.141592)
is 3. floor(-3.141592)
is -4. Before the floor
of a non-number type is calculated, it is converted to a number as
if by the number( )
function.