You won't get that many digits from a double. At least not many you can rely on.Originally Posted by laserlight
This is a discussion on looking for quick method to calculate pi within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by laserlight Once you have the value you can get the digits, but yes, I think reading pre-calculated ...
You won't get that many digits from a double. At least not many you can rely on.Originally Posted by laserlight
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
If you feel sorry for their server, there are lots of threads on pi, try searching for "pi". Here's one about the plot thickening of 100,000 digits: 100,000 digits of piIn fact, why calculate it at all. A million places of percision is ok, right
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.