aboutsummaryrefslogtreecommitdiff
path: root/js/Utils.js
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-09-06 15:52:45 +0200
committerselsta <selsta@sent.at>2019-09-21 01:23:09 +0200
commit2ca76ff13ca784a37e30458d0267959318c95271 (patch)
treecb3a35f6fe0fa7cd497a52a7a5be40ab6050393d /js/Utils.js
parentca8138bb46781d9a5221a6f2c3574db339eab895 (diff)
downloadmonzero-gui-2ca76ff13ca784a37e30458d0267959318c95271.tar.gz
monzero-gui-2ca76ff13ca784a37e30458d0267959318c95271.tar.xz
monzero-gui-2ca76ff13ca784a37e30458d0267959318c95271.zip
LeftPanel: new balance card
Diffstat (limited to 'js/Utils.js')
-rw-r--r--js/Utils.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/Utils.js b/js/Utils.js
index ab2179c8..f32f80a9 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -133,15 +133,3 @@ function capitalize(s){
if (typeof s !== 'string') return ''
return s.charAt(0).toUpperCase() + s.slice(1)
}
-
-function formatMoney(n, c, d, t) {
- // https://stackoverflow.com/a/149099
- var c = isNaN(c = Math.abs(c)) ? 2 : c,
- d = d == undefined ? "." : d,
- t = t == undefined ? "," : t,
- s = n < 0 ? "-" : "",
- i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
- j = (j = i.length) > 3 ? j % 3 : 0;
-
- return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
-};