lib/bigint.js
function bigInt2str(x,base) {
    var i,t,s="";

    if (s6.length!=x.length) 
      s6=dup(x);
    else
      copy_(s6,x);

    if (base==-1) { //return the list of array contents
      for (i=x.length-1;i>0;i--)
        s+=x[i]+',';
      s+=x[0];
    }
    else { //return it in the given base
      while (!isZero(s6)) {
        t=divInt_(s6,base);  //t=s6 % base; s6=floor(s6/base);
        s=digitsStr.substring(t,t+1)+s;
      }
    }
    if (s.length==0)
      s="0";
    return s;
  }
function bigInt2str(x,base) {
    var i,t,s="";

    if (s6.length!=x.length) 
      s6=dup(x);
    else
      copy_(s6,x);

    if (base==-1) { //return the list of array contents
      for (i=x.length-1;i>0;i--)
        s+=x[i]+',';
      s+=x[0];
    }
    else { //return it in the given base
      while (!isZero(s6)) {
        t=divInt_(s6,base);  //t=s6 % base; s6=floor(s6/base);
        s=digitsStr.substring(t,t+1)+s;
      }
    }
    if (s.length==0)
      s="0";
    return s;
  }
function bigInt2str ( x , base ) { var i , t , s = "" ; if ( s6 . length != x . length ) s6 = dup ( x ) ; else copy_ ( s6 , x ) ; if ( base == - 1 ) { //return the list of array contents for ( i = x . length - 1 ; i > 0 ; i -- ) s += x [ i ] + ',' ; s += x [ 0 ] ; } else { //return it in the given base while ( ! isZero ( s6 ) ) { t = divInt_ ( s6 , base ) ; //t=s6 % base; s6=floor(s6/base); s = digitsStr . substring ( t , t + 1 ) + s ; } } if ( s . length == 0 ) s = "0" ; return s ; }
convert a bigInt into a string in a given base, from base 2 up to base 95. Base -1 prints the contents of the array representing the number.
convert a bigInt into a string in a given base from base 2 up to base 95 . Base - 1 prints the contents of the array representing the number .