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/2002-October/029062.html below:

PEP239 (Rational Numbers) Reference Implementation and new issues

[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issuesGreg Ewing greg@cosc.canterbury.ac.nz
Thu, 03 Oct 2002 12:42:56 +1200 (NZST)
Guido:

> The right conversions should happen when you mix rationals with other
> types of numbers (int/long -> rational -> float -> complex), but no
> operations should return rationals unless a rational goes in.

Maybe there should be a separate operator for rational
division?

  1/3 --> float
  1//3 --> int
  1///3 --> rational

(Okay, a 3-char operator is a bit verbose, but I can't
think of anything else that looks division-like just at
the moment.)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+



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