
spacemooose
185
5
7

Believe it or not this averages out to be faster across browser(firefox/chrome/edge) than the recommended ways of rounding. Although, just use 0|num instead of a string. It's quite a big difference if you're writing real time applications such as games.
Until next time!
Valkor
js is weird because it has to be weird. don't let it get to ur head :)
PowerPedant
It's truncating though, "2.7" will end up as "2" as well.
spacemooose
That's generally what flooring does ;) Should have probably said that instead of rounding