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/029088.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 issuesOren Tirosh oren-py-d@hishome.net
Thu, 3 Oct 2002 01:28:29 -0400
On Wed, Oct 02, 2002 at 10:16:07PM -0400, Andrew Koenig wrote:
> Tim> How many trailing zeroes do you expect to save this way?
> 
> The real point is to have small, efficient rational representations
> for floating-point numbers, even those with large exponents.

But why would you want to convert floating point numbers to rationals in
the first place?  Floating point numbers are generally inexact. Converting 
them to exact rationals can give a false sense of exactitude. 

Any calculation involving a floating point number should taint the result
with inexactitude and yield a floating point result. 

	Oren



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