A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/079737.html below:

ANN: Experimental Number Types (Integer, Rational, Floats)

ANN: Experimental Number Types (Integer, Rational, Floats)John W. Baxter jwbaxter at olympus.net
Thu Apr 19 20:47:54 EDT 2001
In article <mailman.987707135.9028.python-list at python.org>, M.-A.
Lemburg <mal at lemburg.com> wrote:

> I'm sure this proof of
>   concept will raise a few more questions regarding the
>   usefulness of switching to rationals for literals like
>   1.123.

I might be more tempted to create a Rational containing 1.123 by writing
Rational(1123, 1000).  (Not to mention the opportunities for
obfuscation:  Rational(2246, 2000) being just a non-obscure one.

And Paul makes a good case for Rational("1.123") I think.

And thanks for all the work!

  --John

More information about the Python-list 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