title: Understanding Mathematical Formula in Java
body: <p>Im just trying to get back into the way of programming in the Java language after having a rather large break so I decided to write a program that calculates PI to the users input number: </p>
  
  <p>e.g. they enter 5, it would return 3.14159. </p>
  
  <p>I've come across the Leibnez formula after a bit of searching but don't know how to implement in code. This seems to be a recurring problem so I'd like to rectify that. Anyone got any resources that demonstrate how to code mathematical formula?</p>
  
  <p>For example, stuff that explains 1e6 and so on?</p>
  
  <p>Cheers</p>