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/029118.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 issuesTim Peters tim.one@comcast.net
Thu, 03 Oct 2002 14:55:46 -0400
[Skip Montanaro]
> ...
> Is there a middle ground where you can say, in effect, "give me rational
> numbers which are truncated to provide precision no worse than N-bit
> floating point numbers"?

Yes, so-called "fixed slash" and "floating slash" arithmetics do exactly
that.  BTW, they tend to give exactly the right results despite intermediate
roundoff errors when the *problem* domain is such that the correct results
are simple fractions.

But this is just another thing that gets mentioned every time this
discussion resurrects, so that's all I'm going to say about it this time
around.  There are literally hundreds of schemes for computer arithmetics
that have been tried and found genuinely useful for *some* things.  The only
ones on the table with any claim to broad usefulness are rationals and
decimal fp.




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