It depends on what CPU at what speed you're running on.
If you use an old 486 SX / 60MHz, then the result'd be 0.2.
However if you use Pentium 90 Mhz and above, the result is not what you
think gonna be .
Why ? Cause the only way they could make the Pentium faster than the 486 is
that in calculations the results are not computed, but estimated.
:))
P.S. I have no clue why is this happening.
Jf
Breskovac Mario
<mario.breskovac@S To: [EMAIL PROTECTED]
IEMENS.HR> cc:
Sent by: A mailing Subject: Re: double value 10.20
-10.00 = ?? HELP!
list about Java
Server Pages
specification and
reference
<JSP-INTEREST@java
.sun.com>
12/22/00 02:07 AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference
I have the same problem with C++ program!
I compiled with Borland C++ 5.5 compiler.
float a = 1000000.20;
float b = 1000000.00;
float c = a - b;
Result of c is 0.1875!!!!!!!!
????
We tried this on the same machine but on Linux operating system. Same
problem with Java and C++ code!
Nobody understand why is this hapening!
Reinkarnation of old Pentium bug?
Regards,
Mario
Ignorance is bliss!
"Cypher from Matrix"
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets