is dwt alive?

"Jérôme M. Berger" jeberger at free.fr
Sun Jul 11 13:45:05 PDT 2010


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:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-dwt/attachments/20100711/8409a14b/attachment.pgp>


More information about the Digitalmars-d-dwt mailing list