瀏覽代碼

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
master
Fen Dweller 6 年之前
父節點
當前提交
8fb572902d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      macrovision.js

+ 2
- 2
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() {


Loading…
取消
儲存