开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜