AW: Java and double

2001-11-15 Thread Ralph Einfeldt
List' Betreff: RE: Java and double Ya, I've seen that one before. use the java.math package. -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: Java and double Hi, Excuse me

Java and double

2001-11-14 Thread Laurent Michenaud
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.44

RE: Java and double

2001-11-14 Thread Jim Rueschhoff
of the number you will get round off errors. This is the very nature of floating point numbers. -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 8:39 AM To: [EMAIL PROTECTED] Subject: Java and double Hi, Excuse me... this mail shouldnot

RE: Java and double

2001-11-14 Thread Mangi, Rick
Ya, I've seen that one before. use the java.math package. -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: Java and double Hi, Excuse me... this mail shouldnot be on this mailing list

AW: Java and double

2001-11-14 Thread Ralph Einfeldt
/ACM/goldberg.pdf If you want more accuracy you can use java.math.BigDecimal. -Ursprüngliche Nachricht- Von: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 16:39 An: [EMAIL PROTECTED] Betreff: Java and double Hi, Excuse me... this mail

RE: Java and double

2001-11-14 Thread Slava
] 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

Re: Java and double

2001-11-14 Thread Micael Padraig Og mac Grene
, 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:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: Java and double Hi, Excuse me... this mail

Re: Java and double

2001-11-14 Thread phillipmastroianni
try putting a 1000d (I think you have to tell the vm that this is a double value or it may try an compute a float! - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] Date: Wednesday, November 14, 2001 9:41 am Subject: Re: Java and double Not sure what your point

AW: Java and double

2001-11-14 Thread Ralph Einfeldt
. November 2001 20:36 An: Tomcat Users List Betreff: Re: Java and double try putting a 1000d (I think you have to tell the vm that this is a double value or it may try an compute a float! - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] Date: Wednesday, November