aarti_pl wrote:
> I just would like to say that it is a great news! After discovering that
> for Java:
> ----
> double sum = 0.0;
> for (int i = 0; i < 10; i++) sum += 0.1;
> ----
> 
> sum is equal: 0.9999999999999999
> 
> I am looking at D with greater and greater sentiment :-) SWT and good
> precision of calculations is necessary for my program...
> 
        Are you sure D is better? In C, you get 0.99999999999999988898 (not
surprising since 0.1 cannot be represented exactly in base 2) and I
would expect D to give the same result...

                Jerome
-- 
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to