Jan 19, 2003 #1 Jeeembo Programmer Jan 19, 2003 3 CA is there a predefined value of pi avaliable in Metrowerks Codewarrior??
Jan 20, 2003 #2 Zyrenthian Programmer Mar 30, 2001 1,440 US if there is not, you can always go with 22/7. const double PI = 22/7; <Matt Upvote 0 Downvote
Jan 20, 2003 1 #3 qednick Programmer Jul 26, 2002 516 US or [tt]#define PI 3.141592653589793238462643383279 [/tt] programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek. Upvote 0 Downvote
or [tt]#define PI 3.141592653589793238462643383279 [/tt] programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
Jan 20, 2003 #4 xwb Programmer Jul 11, 2002 6,828 GB No there isn't. 355/113 is a good enough approximation for most engineering problems (6 digits) but for greater accuracy, take qednick's suggestion. Upvote 0 Downvote
No there isn't. 355/113 is a good enough approximation for most engineering problems (6 digits) but for greater accuracy, take qednick's suggestion.