Pi

juggernot

Well-known member
Joined
Sep 28, 2006
Messages
173
Programming Experience
Beginner
Hey, does anyone know how to put pi into a mathematical equation?
 
those are only the first few digits. No one has found the last digits of pi. For more accurate answers I want as close to the exact value as possible. surely there is a way to do this?
 
Math class is a likely lookup, and surely enough it has got a PI field. Math.PI is the answer. The value of this constant is 3.14159265358979323846
 
You can't calculate pi to the last decimal place, no computer ever made has been able to. 3.141 is a documented constant for the value of Pi, the one contained it the framework just goes a bit further than that.

I believe the current record is...

68,719,470,000 decimal places.

Computers have a 'built in' safety measure that it would only calculate pi to a pre-defined number of decimal places, otherwise they would run out of memory.

 
Back
Top