aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-21 19:45:21 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-21 19:45:21 +0800
commita2f837fbf5cfdd04149c3ce8e3b71bb69d2b4235 (patch)
treebc17dee4d2a1e51341f14bb8565cc6a6d20c57d9 /utils
parente0e237c8831cb483ef945856b3d5355d0f647a50 (diff)
downloadSoopyV2-a2f837fbf5cfdd04149c3ce8e3b71bb69d2b4235.tar.gz
SoopyV2-a2f837fbf5cfdd04149c3ce8e3b71bb69d2b4235.tar.bz2
SoopyV2-a2f837fbf5cfdd04149c3ce8e3b71bb69d2b4235.zip
+ dragon leaderboard display
Diffstat (limited to 'utils')
-rw-r--r--utils/numberUtils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/numberUtils.js b/utils/numberUtils.js
index 597a538..7889d74 100644
--- a/utils/numberUtils.js
+++ b/utils/numberUtils.js
@@ -5,7 +5,7 @@ let utils = {
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return parts.join(".");
},
- addNotation: function (type, value) {
+ addNotation: function (type, value, joiner="") {
let returnVal = value;
let notList = [];
if (type === "shortScale") {
@@ -36,7 +36,7 @@ let utils = {
returnVal = value / (checkNum / 100);
returnVal = Math.floor(returnVal);
returnVal = (returnVal / Math.pow(10, o)) * 10;
- returnVal = +returnVal.toFixed(o - 1) + notValue;
+ returnVal = +returnVal.toFixed(o - 1) + joiner + notValue;
}
checkNum *= 10;
}