pow in objective-c

Joined
Sep 15, 2009
Messages
2
Reaction score
0
Points
1
hi.
I'm new here, and I'm in the middle of learning objective-c.
hope this is the right forum....

does anyone know how to call to the pow function? (like 2^7 , if I remember right, in c it was pow(x,y))

thanks.
 
Joined
May 2, 2009
Messages
480
Reaction score
13
Points
18
Your Mac's Specs
MBP 2.33 4GB: MacPro 8 Core 2.8, 16GB: MacMini 2.26 4GB: MacMin 2.53 4GB: iPhone3GS 32GB
Hi, welcome to the forums.

I don't believe there is an equivalent function in Objective-C. However, there is nothing to prevent you from calling the C function from your Objective-C code as you have access to all the standard C routines/libraries etc.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top