andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Rich comparisons produce unexpected results #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

>>> gmpy.mpz(11) == 11.0
False
>>> 11 == 11.0
True

This bug exists in gmpy 1.04. I think gmpy should follow the Python
conventions whenever possible.

Original issue reported on code.google.com by casevh on 4 Jun 2009 at 6:50

GoogleCodeExporter commented 9 years ago
This is fixed in gmpy 1.10.

Original comment by casevh on 5 Jul 2009 at 5:22