summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-26 20:22:47 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-26 20:22:47 -0700
commitc497e291847d3ee37caf246d62a788c997166fe5 (patch)
treec1f8907893bb7082edf276c4a04e0b69e8625f82
parentba35d6e3d4ce88a0493a8c93c8747294fd68a2d1 (diff)
downloaddartboat-c497e291847d3ee37caf246d62a788c997166fe5.tar.gz
dartboat-c497e291847d3ee37caf246d62a788c997166fe5.tar.xz
web: round away floating-point nonsense
-rw-r--r--web/static/dartboat.js3
1 files changed, 2 insertions, 1 deletions
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() {