diff options
Diffstat (limited to 'shared/core-utils/common/number.ts')
-rw-r--r-- | shared/core-utils/common/number.ts | 13 |
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 @@ | |||
1 | export function forceNumber (value: any) { | ||
2 | return parseInt(value + '') | ||
3 | } | ||
4 | |||
5 | export function isOdd (num: number) { | ||
6 | return (num % 2) !== 0 | ||
7 | } | ||
8 | |||
9 | export function toEven (num: number) { | ||
10 | if (isOdd(num)) return num + 1 | ||
11 | |||
12 | return num | ||
13 | } | ||