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
"...The forum looks great! You guys have done a fantastic job on arranging things there...Your site is very precise and fun to visit..."
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. |
|
|
 |
|
Join Tek-Tips® Today!
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More...
Register now while it's still free!
Already a member? Close this window and log in.
Join Us Close