summaryrefslogtreecommitdiff
path: root/src/utils/simpleFormat.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-23 23:24:17 -0700
committer8cy <[email protected]>2020-07-23 23:24:17 -0700
commitbb511abc03bb66848947e37a999502b813c77269 (patch)
tree612c010fc8317e1cdf11471a18aad0270819d33e /src/utils/simpleFormat.ts
parentfix: if clear amount equal or over 100, round down to 99 (diff)
downloaddep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz
dep-core-bb511abc03bb66848947e37a999502b813c77269.zip
goodbye old uwufier :cry:
Diffstat (limited to 'src/utils/simpleFormat.ts')
-rw-r--r--src/utils/simpleFormat.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/utils/simpleFormat.ts b/src/utils/simpleFormat.ts
deleted file mode 100644
index 4564778..0000000
--- a/src/utils/simpleFormat.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
-* @name simpleFormat
-* @param {number|string} value Value to format
-* @returns {number} A number in fixed-point notation up to 2 decimal points
-*/
-module.exports = (value: string) => {
- const result = parseFloat(parseFloat(value).toFixed(2));
- return result;
-}; \ No newline at end of file