Pat,

It's Saturday, just go and have a beer.

:-)

-Serge

Patrick Casey wrote:
        Huh? A double is a double is a double, regardless of the processor's
register size, neh? Isn't that one of the guarantees of the JVM?

        --- Pat


-----Original Message-----
From: Sergei Dubov [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 21, 2006 11:12 AM
To: Tapestry users
Subject: Re: [OT] 3.163 + 0.001 = ???

Just switch to AMD 64 CPU, it is more precise than Intel.

:-))))

Serge.

Gunna Satria wrote:

Hi All,

 I tried this code:
 double a = 3.163;
 double b = 0.001;
 double c = a+b;
 System.out.println("c = "+c);
 and the result is,   c = 3.1679999999999997
 not 3.164 like i expected
 how come?

 regards,

 Gunna



---------------------------------

What are the most popular cars?  Find out at Yahoo! Autos

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to