Leibniz_Pi.py

Skip Montanaro skip at pobox.com
Sat Oct 12 11:01:09 EDT 2002


I always get ZeroDivisionError.  It appears that on my machine (Powerbook G4
running OSX 10.2.1) that time.clock() isn't fine grained enough, so it makes
a pass of the loop without clock() being able to detect the time difference.

-- 
Skip Montanaro - skip at pobox.com
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list