summaryrefslogtreecommitdiff
path: root/js/2pi.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/2pi.js')
-rw-r--r--js/2pi.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/2pi.js b/js/2pi.js
index 0316a90..5297c07 100644
--- a/js/2pi.js
+++ b/js/2pi.js
@@ -94,8 +94,8 @@ function calculate()
+ "<table class='table table-bordered table-hover'> <tr><th></th><th>Your approximation</th><th>True value</th></tr><tr><td>2π</td><td>" + 2 * avgPi
+ "</td><td>" + TWO_PI + "</td></tr><tr><td>π</td><td>" +
+ avgPi + "</td><td>" + PI + "</table>" + percentError + "% error.<br>"
- + "The blue dot is the center of your shape. The green line is the average radius of the shape.<br>"
- + "The red circle is a circle with the same radius as your shape, and the orange circle is a<br>"
- + "circle with the same circumference as your shape. The closer they are, the better your<br>"
- + "approximation of π</div>");
+ + "The blue dot is the center of your shape. The green line is the average radius of the shape. "
+ + "The red circle is a circle with the same radius as your shape, and the orange circle is a "
+ + "circle with the same circumference as your shape. The closer they are, the better your "
+ + "approximation of π.</div>");
}