This ought to be really easy, but i haven't found it in the docs. I need the log of a Math::BigInt number. Precision isn't important -- honestly all I really want is the number of bits requred for the bigint. I figured I could do:
$bits=int(log($bigint)/log(2))+1;
But, alas, Math::BigInt doesn't have log overloaded and I can't figure how to convert a bigint back to a float. :-(