valor redondo em html

// Will round innerHTML value to 2

document.getElementById("myId").innerHTML = Math.floor(2.9);
ayaan