decimal floating point? (was: Float equality?)

Jeff Sparkes JSparkes at databeacon.com
Wed Sep 22 19:59:40 UTC 2004


This information was apparently used for the basis of the new decimal package in python 2.4.  I haven't looked to see if it's implemented in python, but at least there's actual code.
http://www.python.org/dev/doc/devel/whatsnew/node8.html

-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org]On Behalf Of Sean
McGrath
Sent: September 18, 2004 12:45 AM
To: The general-purpose Squeak developers list
Subject: Re: decimal floating point? (was: Float equality?)


Quoting http://www2.hursley.ibm.com/decimal/ :

"Most computers today support binary floating-point in hardware. While
suitable for many purposes, binary floating-point arithmetic should not
be used for financial, commercial, and user-centric applications or web
services because the decimal data used in these applications cannot be
represented exactly using binary floating-point. (See the Frequently
Asked Questions pages for more explanation and examples.)

The problems of binary floating-point can be avoided by using base 10
(decimal) exponents and preserving those exponents where possible. This
site describes a decimal arithmetic which achieves the necessary results
and is suitable for both hardware and software implementation. It brings
together the relevant concepts from a number of ANSI, IEEE, ECMA, and ISO
standards, and conforms to the proposed decimal formats and arithmetic in
the current draft of the ongoing IEEE 754 revision.

Notably, a single data type can be used for integer, fixed-point, and
floating-point decimal arithmetic, and the design permits compatible
fixed-size and arbitrary-precision implementations. For the background
and rationale for the design, see Decimal Floating-Point: Algorism for
Computers, Cowlishaw, 2003, 16th IEEE Symposium on Computer Arithmetic."

-- 
Sean
sean at manybits.net

On Fri, 17 Sep 2004, Tim Rowledge wrote:

> An old colleague of mine and fellow IBM Fellow ('cept that he's the
> full spec, crowned in glory variety rather than the pondscum variety I
> was) Mike Cowlishaw had/has a non-trivial involvement in this stuff.
> I'm pretty sure he told me about making hardware for it.
>
> tim
> --
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> Useful Latin Phrases:- Mellita, domi adsum. = Honey, I'm home.
>




More information about the Squeak-dev mailing list