"be consistent" | |
PerlMonks |
Re: Re: How can I tell if a number is a power of 2?by VSarkiss (Monsignor) |
on Jan 28, 2002 at 23:16 UTC ( [id://142153]=note: print w/replies, xml ) | Need Help?? |
Oops! You're testing whether $number is odd or even, not whether it's a power of 2.
In Section
Seekers of Perl Wisdom
|
|