Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Turning very larger numbers into an array of bitsby Anonymous Monk |
on Feb 05, 2017 at 01:16 UTC ( [id://1181119]=note: print w/replies, xml ) | Need Help?? |
Where are your big numbers coming from? If you're manipulating them at all, you probably need a multiple-precision math library. If you use Math::GMP, there's gmp_tstbit. (Math::BigInt doesn't seem to have an efficient way to fetch a particular bit.)
In Section
Seekers of Perl Wisdom
|
|