tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Michenaud" <lmichen...@adeuza.fr>
Subject Java and double
Date Wed, 14 Nov 2001 15:38:30 GMT
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>


Mime
View raw message