<p>How can I calculate the value of PI using C#?</p>

<p>I was thinking it would be through a recursive function, if so, what would it look like and are there any math equations to back it up?</p>

<p>I'm not too fussy about performance, mainly how to go about it from a learning point of view.</p>

Calculate like this:
```
```
x = 1 - 1/3 + 1/5 - 1/7 + 1/9  (... etc as far as possible.)
PI = x * 4
```
```
You have got Pi !!!
This is the simplest method I know of.
The value of PI slowly converges to the actual value of Pi (3.141592165......). If you iterate more times, the better.