[issue2075] Float number comparision problem

2008-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected behavior. Please see http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed __ Tracker

[issue2075] Float number comparision problem

2008-02-11 Thread will
will added the comment: The issue is reproduced under WIN32, version info as follows: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 __ Tracker <[EMAIL PROTECTED]> _

[issue2075] Float number comparision problem

2008-02-11 Thread will
New submission from will: c=22.99*5.0 print c==114.95 """This will produce false""" c=22.99*4.0 print c==91.96 """This will produce true""" """This is not expected behavior for python""" -- components: Interpreter Core, Library (Lib) messages: 62306 nosy: tsxy severity: normal status: