[Python-Dev] Decimal & lt; -& gt; float comparisons in py3k.
greg.ewing at canterbury.ac.nz
Sat Mar 20 02:22:16 CET 2010
Glenn Linderman wrote:
> In order to do
> implicit comparisons, one must do an implicit coercion. Hence the PEP
> actually already prohibits implicit comparisons, as well as implicit
Not necessarily -- you could compare them as though they
had both been converted to the equivalent rational numbers,
which can be done without loss of precision.
More information about the Python-Dev