aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/common/number.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/common/number.ts')
-rw-r--r--shared/core-utils/common/number.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/shared/core-utils/common/number.ts b/shared/core-utils/common/number.ts
deleted file mode 100644
index ce5a6041a..000000000
--- a/shared/core-utils/common/number.ts
+++ /dev/null
@@ -1,13 +0,0 @@
1export function forceNumber (value: any) {
2 return parseInt(value + '')
3}
4
5export function isOdd (num: number) {
6 return (num % 2) !== 0
7}
8
9export function toEven (num: number) {
10 if (isOdd(num)) return num + 1
11
12 return num
13}