Help for this page

Select Code to Download


  1. or download this
    int
    sizeinbase_gmp(n, b)
    ...
      CODE:
        RETVAL = mpz_sizeinbase(*n, b);
    
  2. or download this
    sub Math::BigInt::sizeinbase_gmp {
        my $bigint = shift; # ?
    ...
        require Math::BaseCnv;
        return Math::BaseCnv::cnv( length($bigint)-1, 10, $base (;
    }