[New-bugs-announce] [issue6794] decimal.py: incorrect results in NaN comparisons

Stefan Krah report at bugs.python.org
Fri Aug 28 12:15:04 CEST 2009


New submission from Stefan Krah <stefan-usenet at bytereef.org>:

Hi,

I believe the following comparisons aren't correct:

1:

Decimal("-sNaN63450748854172416").compare_total(Decimal("-sNaN911993"))
==> Decimal('1')

Should be: Decimal('-1') (checked against decNumber)


2:
Decimal("NaN1222222222222").compare_total_mag(Decimal("-NaN999999"))
==> Decimal('-1')

Should be: Decimal('1') (checked against decNumber)

----------
components: Library (Lib)
messages: 92032
nosy: skrah
severity: normal
status: open
title: decimal.py: incorrect results in NaN comparisons

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6794>
_______________________________________


More information about the New-bugs-announce mailing list