aboutsummaryrefslogtreecommitdiff
path: root/utils/numberUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/numberUtils.js')
-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;
}