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/2000-November/010491.html below:

[Python-Dev] Integer division transition

[Python-Dev] Integer division transition [Python-Dev] Integer division transitionTim Peters tim_one@email.msn.com
Tue, 7 Nov 2000 03:38:35 -0500
[Guido]
> ...
> Note: it is open for debate whether the result of x/y for integer (or
> long integer) arguments should yield an integer (or long integer) in
> those cases where the result *is* representable as such (e.g. 4/2).
> It is possible that the numeric tower will render this problem moot --
> but that depends on what happens to Moshe's PEP 228, and that's a much
> longer story.

Note that for long ints i and j, i/j may (& easily so) be too large to
represent as a native double.  Rationals (of course) have no problem with
that.  It would certainly be curious if i*j didn't overflow but i/j did.

Just an observation -- I'm a fan of unintended consequences <wink>.





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