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/2010-February/098022.html below:

[Python-Dev] PEP 3188: Implementation Questions

[Python-Dev] PEP 3188: Implementation Questions [Python-Dev] PEP 3188: Implementation QuestionsGreg Ewing greg.ewing at canterbury.ac.nz
Sun Feb 28 02:39:18 CET 2010
Meador Inge wrote:

> Even with the user-defined precision capabilities of the 'Decimal' 
> class?  In other words, can I create an instance of a 'Decimal' that 
> behaves (in all operations: arithmetic, comparison, etc...) exactly as 
> the extended double precision type offered by a given machine?

It's not precision that's the issue, it's that the number
base is different. That affects which numbers can
be represented exactly, and how results that can't be
represented exactly are rounded.

I would be very surprised if there is a way of configuring
the Decimal type so that it gives identical results to that
of any IEEE binary floating point type, including rounding
behaviour, denormalisation, etc.

-- 
Greg

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