jhanna has asked for the wisdom of the Perl Monks concerning the following question:
$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. :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bigint - float?
by sifukurt (Hermit) on Nov 23, 2001 at 20:19 UTC | |
by jhanna (Scribe) on Nov 23, 2001 at 21:38 UTC | |
by sifukurt (Hermit) on Nov 23, 2001 at 22:34 UTC | |
|
Re: bigint - float?
by Zaxo (Archbishop) on Nov 24, 2001 at 00:55 UTC | |
by jhanna (Scribe) on Nov 24, 2001 at 04:06 UTC |