Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: 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. ---------- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2653> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com