INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS
Come Join Us!
Are you a Computer / IT professional? Join Tek-Tips now!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- One-Click Access To Your
Favorite Forums
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site

(Download This Button Today!)
Member Feedback
"Because of this forum, I continue to WOW! my clients!"
Geography
Where in the world do Tek-Tips members come from?
|
Codewarrior predefined value of pi
|
|
|
Jeeembo (Programmer) |
20 Jan 03 0:52 |
is there a predefined value of pi avaliable in Metrowerks Codewarrior?? |
|
if there is not, you can always go with 22/7.
const double PI = 22/7;
<Matt |
|
qednick (Programmer) |
20 Jan 03 11:20 |
or #define PI 3.141592653589793238462643383279
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek. |
|
|
xwb (Programmer) |
21 Jan 03 2:49 |
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. |
|
|
 |
|