generating pi to nth digit java
问题 I wanted to know how I can generate pi to the nth digit. I have a couple of basic ideas. Use Math.PI and increase the precision (if that's possible) Use Euler's formula to generate pi but even here, I would need to increase the precision (I think) There is also Srinivasa Ramanujan's formula for generating PI which is known for it's rapid convergence. This formula seems difficult to implement. I believe, I would have to also increase deicmal precision here. So in short, either way, I would