JavaScript Math

The Math.floor() Method

Math.floor() rounds a number DOWN to the nearest integer: