Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Power of two round up.

by runrig (Abbot)
on Dec 15, 2000 at 23:41 UTC ( [id://46898]=note: print w/replies, xml ) Need Help??


in reply to Power of two round up.

my $num = 17; my $nlog = 2**(int(log($num)/log(2))+1); print $nlog;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found