Bugs item #1544381, was opened at 2006-08-22 07:15 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1544381&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Performance Group: Python 2.4 >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Jean-Christophe BERTOLINI (jbertoli) Assigned to: Nobody/Anonymous (nobody) Summary: Bad result of calculation Initial Comment: In the Python Shell enter: >>> 3.84-4.5 -0.66000000000000014 The last digits of the calculation result are wrong ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-08-22 08:20 Message: Logged In: YES user_id=849994 This is due to how floats work. See http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate . ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1544381&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com