This may be a bit off topic, but I think it might concern any java
developper.

I'm using Blackdown's 1.2.2 JDK, but I remember having the same trouble in
the past with others jdk too. I must be misdoing something :
take two floats and multiply them : it works in most cases. Most cases ?
for example
(float)0.05 * (float)2179 = 108.950005 instead of 108.95

in some cases, an operation like x / ( 1/y) works. In some others (including
this one) it doesn't.

The margin error is always less than 0.00001.

Is it a cast problem, or is it worse. (By the way, the same thing happens
also in javascript both in IE and Netscape).




______________________________________________
Sylvain Roche
Responsable d�veloppement
Add-Online
www.add-online.fr

80 rue d'Alsace
69100 VILLEURBANNE
France

tel : +33 437431260
fax: +33 437431269

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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

Reply via email to