For a script I\'m writing, I need display a number that has been rounded, but not the decimal or anything past it. I\'ve gotten down to rounding it to the third place, but I
Use Math.floor():
var f = 20.536; var i = Math.floor(f); // 20
http://jsfiddle.net/J4UVV/1/