Language Reference floor Method


Description

Computes the greatest integer less than or equal to the supplied argument.

Syntax

var numVar = Math.floor( number )

Arguments

number: A numeric value for which the floor is desired.

Return Value

An integer value equal to the greatest integer less than or equal to the supplied argument.

Remarks
See also ceil.