I want to use PI in my code of iphone SDK
How can i use开发者_Python百科 PI in the objective-C ?? How to write coding if i want to do
(36.12*pi)/180 ?
Use the constant M_PI. Your code would look like this:
(36.12 * M_PI)/180;
You can use the constant M_PI
精彩评论