diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-26 20:22:47 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-26 20:22:47 -0700 |
commit | c497e291847d3ee37caf246d62a788c997166fe5 (patch) | |
tree | c1f8907893bb7082edf276c4a04e0b69e8625f82 /web/static/dartboat.js | |
parent | ba35d6e3d4ce88a0493a8c93c8747294fd68a2d1 (diff) | |
download | dartboat-c497e291847d3ee37caf246d62a788c997166fe5.tar.gz dartboat-c497e291847d3ee37caf246d62a788c997166fe5.tar.xz |
web: round away floating-point nonsense
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 3 |
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() { |