On Wed, 25 Jan 2012 13:25:33 -0800 (PST), Tom C
<(E-Mail Removed)> wrote:
>On Jan 25, 2:49*pm, ralph <nt_consultin...@yahoo.net> wrote:
>> On Wed, 25 Jan 2012 12:21:40 -0800 (PST), Tom C
>>
>> <tom_cla...@asdsoftware.com> wrote:
>> >The following result is from the immediate window in vs2005 just to
>> >illustrate what I am seeing in code. Quite obviously, .08 / .1 does
>> >not equal 0.79999999999999993. What is going on here?
>>
>> Every beginnig developer gets burned by this sooner or later.
>>
>> http://floating-point-gui.de/
>>
>> -ralph
>
>I have probably been programming longer than you are old but aside
>from that, I have never seen this and I am looking for the cliff notes
>answer not a college degree in math so please don't reply with another
>antagonistic comment and link.
>
>thanks
I apologize if I ruffled your feathers. Not intended, just wanted to
let you know this is a common issue EVERYONE runs into sooner or
later. Surprised if you have been programming for more years than I
(34 years) you haven't encountered this before.
I did provide the 'Cliff Notes' answer. If you want the real
nitty-gritty go here. (PS: Note the title.)
"What Every Computer Scientist Should Know About Floating-Point
Arithmetic"
http://docs.oracle.com/cd/E19957-01/..._goldberg.html
-ralph