Quellcode durchsuchen

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 vor 5 Jahren
Ursprung
Commit
8fb572902d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js Datei anzeigen

@@ -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() {


Laden…
Abbrechen
Speichern