Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58848 invoked from network); 14 Nov 2001 17:39:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Nov 2001 17:39:34 -0000 Received: (qmail 18001 invoked by uid 97); 14 Nov 2001 17:38:09 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 17975 invoked by uid 97); 14 Nov 2001 17:38:08 -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 17958 invoked from network); 14 Nov 2001 17:38:07 -0000 Message-ID: <004e01c16d33$a0c1ce20$e4f942cf@ridgeview> From: "Micael Padraig Og mac Grene" To: "Tomcat Users List" Subject: Re: Java and double Date: Wed, 14 Nov 2001 09:41:43 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Not sure what your point is. The code is okay, check out the "internal" math yourself. You can do it by hand. If you want more precision, use different code. -----Original Message----- From: Mangi, Rick To: 'Tomcat Users List' Date: Wednesday, November 14, 2001 8:44 AM Subject: RE: Java and double >Ya, I've seen that one before. use the java.math package. > >-----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 > > >Hi, > >Excuse me... this mail shouldnot be on this mailing list but >it is an hurry. > >public class TestDouble >{ > static public void main(String args[]) { > > double val = 0.5055 * 1000 ; > System.out.println( val ); > } >} > >This program gives me the following results : >505.49999999999994 > >I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1. > >Have u got informations about this ? >Can u try too ? > >Thanks a lot and sorry again > >Bye > >Michenaud Laurent >- Adeuza - >[ D�veloppeur Web - Administrateur R�seau ] > > >-- >To unsubscribe: >For additional commands: >Troubles with the list: > > >This email and any attachments are confidential and may be >legally privileged. No confidentiality or privilege is waived >or lost by any transmission in error. If you are not the >intended recipient you are hereby notified that any use, >printing, copying or disclosure is strictly prohibited. >Please delete this email and any attachments, without >printing, copying, forwarding or saving them and notify the >sender immediately by reply e-mail. Zurich Capital Markets >and its affiliates reserve the right to monitor all e-mail >communications through its networks. Unless otherwise >stated, any pricing information in this e-mail is indicative >only, is subject to change and does not constitute an offer >to enter into any transaction at such price and any terms in >relation to any proposed transaction are indicative only and >subject to express final confirmation. > >-- >To unsubscribe: >For additional commands: >Troubles with the list: > > -- To unsubscribe: For additional commands: Troubles with the list: