Get Floor Method

The Get Floor method returns the greatest integer that is not greater than the value that the number argument contains. If this value is already an integer, then it returns the value that the number argument contains. If this method cannot convert the value that the number argument contains to a number, then it returns the following value:

NaN

This method uses the same argument as the Get Absolute Value method. For more information, see Get Absolute Value Method.

Format

Math.floor(number)

For an example, see Get Ceiling Method.