Applies to: Math Object
The floor method is use to get the greatest integer less than or equal to its numeric argument.
Syntax
Math.floor(number)
The number argument is a numeric expression.
Return value
Returns the greatest integer less than or equal to its numeric argument.
Example
The return value is an integer value equal to the greatest integer less than or equal to its numeric argument.
See also: ceil Method, Math Object Methods |