We don't bite newbies here... much | |
PerlMonks |
Re: Power of two round up.by Dominus (Parson) |
on Dec 17, 2000 at 05:35 UTC ( [id://47091]=note: print w/replies, xml ) | Need Help?? |
Sure, because it has to dispatch many fewer opcodes. But
if I had wanted to use the log2 x solution, I wouldn't have
asked in the first place. Floating-point arithmetic gives
me the heebie-jeebies.
In Section
Cool Uses for Perl
|
|