   pi calculator
  this has nothing to do with game developmentbut i thought it would be cool to make a pi calculator i searched google for a algorithm but all the ones i found were very complex do you know of any good simple ones for calculating pi   
  Simple answer: pi = 4 * arctan(1)Most computation of Pi use an iterative approach by adding terms of a series until the desired accuracy is reached.Some of these can be found Here and Here. There are many representations, some are better for computer computation than others. If what you are looking to do is compute as many digits of Pi as desired, you may have to look into some form a big-number representation, as the built in types in most languages do not support more enough resolution to describe lengthy amounts of digits.   