|P is for Practical|
Simple Pi calculatorby arhuman (Vicar)
|on Mar 09, 2001 at 13:51 UTC||Need Help??|
You can pass the desired number of digits as parameter on the commandline.
Of course the method used was choosed more for its simplicity than for its speed.
(But this code could be optimized several ways, by adding 'use integer;' for example...)
For REAL program you should use Math::GMP or Math::Float and real formulae
Any search on the net would give you a lot of start point, you might try this one.
"Trying to be a SMART lamer" (thanx to Merlyn ;-)