3.14
Moderator: General Moderators
- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
maybe you should use a more accurate approximation 
e.g. from http://mathworld.wolfram.com/PiFormulas.html and search for the word "spigot"
or google for "pi spigot"
e.g. from http://mathworld.wolfram.com/PiFormulas.html and search for the word "spigot"
or google for "pi spigot"
Does that script just divide using normal php arithmetic? If so, you'll get 14 or 15 decimal places tops - thats a double precision floating point number. You either need to code a clever function that outputs the numbers one by one in a loop, or use the php equivalent of a BigDecimal (Arbitrary precision fp numbers (if there is one))