From a2f837fbf5cfdd04149c3ce8e3b71bb69d2b4235 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 21 Jul 2022 19:45:21 +0800 Subject: + dragon leaderboard display --- utils/numberUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') 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; } -- cgit