javaScript Math.floor() function returns minimum integer value than the value provided. Math.floor(4.6) will return 4. See the code snippet:
Math.floor()
Math.floor(4.6)