Lines Matching refs:base
252 // base-2 to base-1e7, which allows us to represent the 64-bit range with
254 // a base-10 string.
257 // 2^24 = 16777216 = (1,6777216) in base-1e7.
258 // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
266 // Assemble our three base-1e7 digits, ignoring carries. The maximum
274 const base = 10000000;
275 if (digitA >= base) {
276 digitB += Math.floor(digitA / base);
277 digitA %= base;
280 if (digitB >= base) {
281 digitC += Math.floor(digitB / base);
282 digitB %= base;
332 // Work 6 decimal digits at a time, acting like we're converting base 1e6
335 const base = 1e6;
341 highBits *= base;
342 lowBits = lowBits * base + digit1e6;