diff --git a/pendulum/main.js b/pendulum/main.js index 10f4922b..ac251502 100644 --- a/pendulum/main.js +++ b/pendulum/main.js @@ -300,6 +300,6 @@ function handleClick(event) theta = helper.angleBetween(createVector(0, -1)); // alert(degrees(theta)); - document.getElementById("inst").innerHTML = "Mass: " + m + " kg --- Moment of inertia: " + inertia.toFixed(3) + " kgm^-2 --- Canvas is 2m wide --- Simulated material is aluminum"; + document.getElementById("inst").innerHTML = "Mass: " + m.toFixed(3) + " kg --- Moment of inertia: " + inertia.toFixed(3) + " kgm^-2 --- Canvas is 2m wide --- Simulated material is aluminum"; } } \ No newline at end of file