A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-March/098594.html below:

[Python-Dev] Decimal & lt; -& gt; float comparisons in py3k.

[Python-Dev] Decimal & lt; -& gt; float comparisons in py3k. [Python-Dev] Decimal & lt; -& gt; float comparisons in py3k.Greg Ewing 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 
> arithmetic.

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.

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4