INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS
Come Join Us!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- Turn Off Ad Banners
- 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
"...this web site is a 'Godsend' for me. If I have a programming problem that I'm unable to solve, I'll get a sensible reply in no time. It's really great!..."
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. |
|
|
 |
|