Sfoglia il codice sorgente

Wait until later to show "thousand" - around 100,000 now

tags/v0.1.0
Fen Dweller 5 anni fa
parent
commit
b8bb2e0281
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: E80B35A6F11C3656
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      numbers.js

+ 2
- 2
numbers.js Vedi File

@@ -6,7 +6,7 @@ function numberTextSmall(val, places = 1, smallPlaces = 0) {
if (isNaN(val)) {
throw new RangeError("Invalid number: " + val);
}
if (val < 1000) {
if (val < Math.pow(10, (places+2))) {
return round(val, smallPlaces);
}

@@ -26,7 +26,7 @@ function numberText(val, places = 1, smallPlaces = 0) {
if (isNaN(val)) {
throw new RangeError("Invalid number: " + val);
}
if (val < 1000) {
if (val < Math.pow(10, (places+2))) {
return round(val, smallPlaces);
}



Loading…
Annulla
Salva