From 35ef33f2ea670658cc14b24c17bf58dcc68c3428 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 10 Mar 2021 16:11:17 +0100 Subject: [PATCH] gugu2 --- pendulum/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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