value of pi and 22/7

kracekumar ramaraju kracethekingmaker at gmail.com
Thu Mar 17 12:46:25 EDT 2011


I tried the following
>>> 22/7.0
3.1428571428571428
>>> import math
>>> math.pi
3.1415926535897931
>>>


Why is the difference is so much ?is pi =22/7 or something ?
-- 
winning regards
kracekumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110317/92387748/attachment.html>


More information about the Python-list mailing list