A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/044214.html below:

[Python-Dev] Decimal data type issues

[Python-Dev] Decimal data type issues [Python-Dev] Decimal data type issuesMichael Hudson mwh at python.net
Tue Apr 13 13:54:44 EDT 2004
A comment from the peanut gallery...

"Batista, Facundo" <FBatista at uniFON.com.ar> writes:

> Should the following be true?::
>
>   hash(Decimal(25) == hash(25)
>   hash(Decimal.from_float(25.35) == hash(25.35)
>   hash(Decimal('-33.8')) == hash(-33.8)

Well, if Decimal(25) == 25, they'd better hash the same!  If not, then
what's the point?

Cheers,
mwh

-- 
  I think perhaps we should have electoral collages and construct
  our representatives entirely of little bits of cloth and papier 
  mache.          -- Owen Dunn, ucam.chat, from his review of the year

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