Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 3875 invoked from network); 15 Nov 2001 08:48:30 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Nov 2001 08:48:30 -0000 Received: (qmail 16285 invoked by uid 97); 15 Nov 2001 08:48:04 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 16269 invoked by uid 97); 15 Nov 2001 08:48:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16246 invoked from network); 15 Nov 2001 08:48:03 -0000 content-class: urn:content-classes:message Subject: AW: Java and double MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Nov 2001 09:47:57 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Java and double Thread-Index: AcFtLDHn6+ArD2agTXel9/QkKsFeagAfXOvg From: "Ralph Einfeldt" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That won't change anything, as the Math class uses=20 the normal primitive datatypes. This is a 'problem' of representing numbers in double=20 and float. > -----Urspr=FCngliche Nachricht----- > Von: Mangi, Rick [mailto:rick.mangi@zcmgroup.com] > Gesendet: Mittwoch, 14. November 2001 17:47 > An: 'Tomcat Users List' > Betreff: RE: Java and double >=20 >=20 > Ya, I've seen that one before. use the java.math package.=20 >=20 > -----Original Message----- > From: Laurent Michenaud [mailto:lmichenaud@adeuza.fr] > Sent: Wednesday, November 14, 2001 10:39 AM > To: tomcat-user@jakarta.apache.org > Subject: Java and double >=20 >=20 > Hi, >=20 > Excuse me... this mail shouldnot be on this mailing list but > it is an hurry. >=20 > public class TestDouble > { > static public void main(String args[]) { >=20 > double val =3D 0.5055 * 1000 ; > System.out.println( val ); > } > } >=20 > This program gives me the following results : > 505.49999999999994 >=20 > I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1. >=20 > Have u got informations about this ? > Can u try too ? >=20 > Thanks a lot and sorry again >=20 > Bye >=20 > Michenaud Laurent > - Adeuza - > [ D=E9veloppeur Web - Administrateur R=E9seau ] >=20 >=20 > -- > To unsubscribe: > For additional commands: > Troubles with the list: >=20 >=20 > This email and any attachments are confidential and may be=20 > legally privileged. No confidentiality or privilege is waived=20 > or lost by any transmission in error. If you are not the=20 > intended recipient you are hereby notified that any use,=20 > printing, copying or disclosure is strictly prohibited. =20 > Please delete this email and any attachments, without=20 > printing, copying, forwarding or saving them and notify the=20 > sender immediately by reply e-mail. Zurich Capital Markets=20 > and its affiliates reserve the right to monitor all e-mail=20 > communications through its networks. Unless otherwise=20 > stated, any pricing information in this e-mail is indicative=20 > only, is subject to change and does not constitute an offer=20 > to enter into any transaction at such price and any terms in=20 > relation to any proposed transaction are indicative only and=20 > subject to express final confirmation. >=20 > -- > To unsubscribe: > For additional commands: > Troubles with the list: >=20 >=20 >=20 -- To unsubscribe: For additional commands: Troubles with the list: