By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,276 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,276 IT Pros & Developers. It's quick & easy.

Area of circle using constant PI value

P: 1
i am beginner in program to explain area of circle constant pi value in python.
4 Weeks Ago #1
Share this Question
Share on Google+
2 Replies

P: 1
You can use float constant or #define constant to declare PI value.
1. float constant
Area of Circle in C
2. #define Constant
Area of Circle using #define
4 Weeks Ago #2

P: 69
Thank you bharani10. That is a nice start.

I am only adding to the math part.

If you want Pi to be more accurate, and if you have learned from the previous post, then you might try including (as you decide) some of this:


Fractions: Approximate fractions include (in order of increasing accuracy)
104348/33215, and
245850922/78256779 .

Please read the linked page from Wikipedia. It explains a lot more of the math.
3 Weeks Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.