Lines Matching full:radix
110 function GlobalParseInt(string, radix) {
111 if (IS_UNDEFINED(radix) || radix === 10 || radix === 0) {
125 radix = radix | 0;
129 radix = TO_INT32(radix);
130 if (!(radix == 0 || (2 <= radix && radix <= 36))) {
136 (radix == 0 || radix == 10)) {
139 return %StringParseInt(string, radix);
1378 function NumberToString(radix) {
1389 // Fast case: Convert number in radix 10.
1390 if (IS_UNDEFINED(radix) || radix === 10) {
1394 // Convert the radix to an integer and check the range.
1395 radix = TO_INTEGER(radix);
1396 if (radix < 2 || radix > 36) {
1397 throw new $RangeError('toString() radix argument must be between 2 and 36');
1399 // Convert the number to a string in the given radix.
1400 return %NumberToRadixString(number, radix);