Math.floor(X)
This function rounds the given number to the nearest smaller integer (number with no fraction). So it works just like Math.round, but it always rounds down.
Play around with the number in this example program to get a sense of how it works.