From 8fb572902db624314501cc9e5918be4095f17919 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 8 May 2020 11:24:55 -0400 Subject: [PATCH] Switch from rounding values to fixing their number of sig figs This way, small values don't just become 0, and large values don't have tons and tons of digits --- macrovision.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macrovision.js b/macrovision.js index f208a54d..7a35bd78 100644 --- a/macrovision.js +++ b/macrovision.js @@ -863,8 +863,8 @@ function updateViewOptions(entity, view, changed) { }); } -function setNumericInput(input, value, round = 3) { - input.value = math.round(value, round); +function setNumericInput(input, value, round = 6) { + input.value = value.toPrecision(round); } function getSortedEntities() {