Math.floor(x)
Returns the largest integer less than or equal to x.