How can I round down a number in JavaScript?
math.round() doesn\'t work because it rounds it to the nearest decimal.
math.round()
I\'m not sure if there is
Using Math.floor() is one way of doing this.
Math.floor()
More information: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor