value of pi and 22/7

Wolfgang Rohdewald wolfgang at rohdewald.de
Thu Mar 17 12:53:19 EDT 2011


On Donnerstag 17 März 2011, kracekumar ramaraju wrote:

> >>> 22/7.0
> 
> 3.1428571428571428
> 
> >>> import math
> >>> math.pi
> 
> 3.1415926535897931
> 
> Why is the difference is so much ?is pi =22/7 or something ?

https://secure.wikimedia.org/wikipedia/en/wiki/Pi

-- 
Wolfgang



More information about the Python-list mailing list