tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: Java and double
Date Thu, 15 Nov 2001 08:47:57 GMT
That won't change anything, as the Math class uses 
the normal primitive datatypes.
This is a 'problem' of representing numbers in double 
and float.

> -----Ursprüngliche 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
> 
> 
> 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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message