Menu Home

Math.floor()

Hi everyone, and welcome to another siesta-powered edition of Boring JavaScript! Today, we take on the Math.floor() method. It doesn’t matter if you have hardwood, stone, or even linoleum, all you need to do is … wait … whoops. Wrong floor. This is a method for getting the largest integer less than or equal to a number. Prepared to be floored and watch the video now!