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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, wr
Date 2008-04-18.07:34:56
SpamBayes Score 0.1317965
Marked as misclassified No
Message-id <1208504098.16.0.0457127955291.issue2653@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, and 
  >>> 1.005 * 1000
  1004.9999999999999

Please read 
http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate

To perform exact base-10 calculation, you may use the Decimal module.
Or use round() instead of the int() truncation.
History
Date User Action Args
2008-04-18 07:34:58amaury.forgeotdarcsetspambayes_score: 0.131796 -> 0.1317965
recipients: + amaury.forgeotdarc, wr
2008-04-18 07:34:58amaury.forgeotdarcsetspambayes_score: 0.131796 -> 0.131796
messageid: <1208504098.16.0.0457127955291.issue2653@psf.upfronthosting.co.za>
2008-04-18 07:34:57amaury.forgeotdarclinkissue2653 messages
2008-04-18 07:34:57amaury.forgeotdarccreate