Why is math.pi slightly wrong?

Dutton, Sam Sam.Dutton at itn.co.uk
Fri May 23 02:04:09 EDT 2008


Thanks for all the answers and comments.

>math.pi is exactly equal to 884279719003555/281474976710656, which is the closest C double to the actual value of pi

So much for poor old 22/7...

Sam
 





SAM DUTTON
SENIOR SITE DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F 
E Sam.Dutton at itn.co.uk
WWW.ITN.CO.UK

P  Please consider the environment. Do you really need to print this email?
Please Note:

 

Any views or opinions are solely those of the author and do not necessarily represent 
those of Independent Television News Limited unless specifically stated. 
This email and any files attached are confidential and intended solely for the use of the individual
or entity to which they are addressed. 
If you have received this email in error, please notify postmaster at itn.co.uk 

Please note that to ensure regulatory compliance and for the protection of our clients and business,
we may monitor and read messages sent to and from our systems.

Thank You.





More information about the Python-list mailing list