|
-
Oct 13th, 2008, 01:16 PM
#1
Thread Starter
New Member
power
how do i 2 to the power of any exponent WITHOUT using the Math.pow method?
-
Oct 13th, 2008, 08:57 PM
#2
Re: power
A for loop, a recursive method, or a bit shifting operation can do it. Depends on what your instructor is expecting.
unsigned left shift would be the best way to go just FYI
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|