I am making a weight converter. After a few people using it, some realized that it showed way too many decimals at the end. How can I make it so that it only shows up to the hundredths?
document.getElementById("output").style.visibility = "hidden";
document.getElementById("lbsInput").addEventListener("input", function(e) {
document.getElementById("output").style.visibility = "visible";
let lbs = e.target.value;
document.getElementById("gramOutput").innerHTML = lbs * 454;
document.getElementById("kgOutput").innerHTML = lbs / 2.205;
document.getElementById("ozOutput").innerHTML = lbs * 16;
});