How is PI calculated?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-04-16T16:52:12Z Indexed on 2010/04/16 16:53 UTC
Read the original article Hit count: 119

Filed under:
|
|

I want to make a function in C that can return PI to X places..

ex: 
CalcPi(0) = 3
CalcPi(1) = 3.1
CalcPi(2) = 3.14
etc...

I'm just not sure how... Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++