[2263] XML dump of DOUBLE rounds values

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Mar 27 02:01:41 CDT 2007


On 27/3/07 12:15 AM, "Thorsten Hohage" <thohage at objectmanufactur.com> wrote:

>> This is why I again want to point. If you need EXACT storage of
>> numbers,
>> DO NOT use DOUBLE/FLOAT type.
> 
> Yes and the most important problem is not retrieving "correct" value,
> but comparing two values, because on a computer using rounding/
> truncation you've got uncountable (right translation?) different
> "zeros"!

Yes, if you remember in PASCAL comparison of 2 double values was prohibited
at all.

C/C++ allow you write

    if( dv1 == dv2 )
         
But this is potential bug.



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list