This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson
Date 2008-01-12.05:20:27
SpamBayes Score 0.18149133
Marked as misclassified No
Message-id <1200115229.68.0.232140016038.issue1811@psf.upfronthosting.co.za>
In-reply-to
Content
Division of two longs can produce results that are needlessly 
inaccurate:

>>> from __future__ import division
>>> 10**40/10**39
10.000000000000002

The correct result is, of course, 10.0, which is exactly representable 
as a float.

The attached snippet of Python code shows that things don't have to be 
this way.
History
Date User Action Args
2008-01-12 05:20:29mark.dickinsonsetspambayes_score: 0.181491 -> 0.18149133
recipients: + mark.dickinson
2008-01-12 05:20:29mark.dickinsonsetspambayes_score: 0.181491 -> 0.181491
messageid: <1200115229.68.0.232140016038.issue1811@psf.upfronthosting.co.za>
2008-01-12 05:20:28mark.dickinsonlinkissue1811 messages
2008-01-12 05:20:28mark.dickinsoncreate