JavaScript Math.floor()

Math.floor(x) returns the value of x rounded down to its nearest integer: