We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d2575 commit 198c9f2Copy full SHA for 198c9f2
lib/decimal.js
@@ -67,7 +67,7 @@
67
68
var value,
69
exp,
70
- tokens = number.split(RADIX),
+ tokens = number.split(DECIMAL_SEPARATOR),
71
integer = tokens[0],
72
fractional = tokens[1];
73
@@ -83,7 +83,7 @@
83
exp = 0;
84
}
85
} else {
86
- value = parseInt(number.split(RADIX).join(''), 10);
+ value = parseInt(number.split(DECIMAL_SEPARATOR).join(''), 10);
87
exp = fractional.length * -1;
88
89
@@ -99,7 +99,7 @@
99
position = Math.abs(position);
100
101
var offset = position - str.length;
102
- var sep = RADIX;
+ var sep = DECIMAL_SEPARATOR;
103
104
if(offset >= 0) {
105
str = zero(offset) + str;
0 commit comments