Re: Floating Point Approximations.

From: Matthias Klaey <mpky_at_hotmail.com>
Date: Thu, 29 Mar 2007 01:32:10 +0200
Message-ID: <0iul039ee7icrtp8lq6jedme1bptldvsmh_at_4ax.com>


paul c <toledobythesea_at_oohay.ac> wrote:

>Bob Badour wrote:
>> David Cressey wrote:
>>
>>> Here's another example of floating point errors, that's even simpler
>>> than
>>> the 21200 plus 2.5% example.

[...]  

>> I translated the above into C, corrected it and expanded on it. The
>> naive method below ignores rounding. The aware method is aware of both
>> the limitation in the representations and in the range of interest
>> (chosen as 5 decimal places based on the useful precision of the float
>> type.)
>>
>> This is such a trivial example that it should make all programmers who
>> don't know what they are doing shudder.

[...]

>
>IBM would be doing a public service to put Cowlishaw's decimal code in
>the public domain. Don't understand why they don't.
>

Is it this http://en.wikipedia.org/wiki/Mike_Cowlishaw that you are referring to? His work seems to be pretty much available to the public.

Greetings
Matthias Kläy

-- 
www.kcc.ch
  
Received on Thu Mar 29 2007 - 01:32:10 CEST

Original text of this message