From c497e291847d3ee37caf246d62a788c997166fe5 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 26 Apr 2022 20:22:47 -0700 Subject: web: round away floating-point nonsense --- web/static/dartboat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/static/dartboat.js b/web/static/dartboat.js index da59e59..653e0ce 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -163,7 +163,8 @@ function setStdev(val, update_opts = true) { } function updateStdev(val) { - document.getElementById('stdev').value = val; + document.getElementById('stdev').value = parseFloat( + val.toFixed(2).slice(0, 4)); } function readOpts() { -- cgit v1.2.3-70-g09d2