Skip to content

Commit 198c9f2

Browse files
author
Samori Gorse
committed
Changed RADIX to DECIMAL_SEPARATOR
1 parent 97d2575 commit 198c9f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/decimal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
var value,
6969
exp,
70-
tokens = number.split(RADIX),
70+
tokens = number.split(DECIMAL_SEPARATOR),
7171
integer = tokens[0],
7272
fractional = tokens[1];
7373

@@ -83,7 +83,7 @@
8383
exp = 0;
8484
}
8585
} else {
86-
value = parseInt(number.split(RADIX).join(''), 10);
86+
value = parseInt(number.split(DECIMAL_SEPARATOR).join(''), 10);
8787
exp = fractional.length * -1;
8888
}
8989

@@ -99,7 +99,7 @@
9999
position = Math.abs(position);
100100

101101
var offset = position - str.length;
102-
var sep = RADIX;
102+
var sep = DECIMAL_SEPARATOR;
103103

104104
if(offset >= 0) {
105105
str = zero(offset) + str;

0 commit comments

Comments
 (0)