[issue2531] float compared to decimal is silently incorrect.

Jeremy Dunck report at bugs.python.org
Wed Apr 2 00:11:37 CEST 2008


New submission from Jeremy Dunck <jdunck at users.sourceforge.net>:

Within python 2.5.2:

>>> from decimal import Decimal
>>> x = 3.0
>>> y = Decimal('0.25')
>>> x > y
False (expected error, as in 2.4, or True)

----------
components: Library (Lib)
messages: 64827
nosy: jdunck
severity: normal
status: open
title: float compared to decimal is silently incorrect.
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2531>
__________________________________


More information about the Python-bugs-list mailing list