There is no problem. Float and Double represents a number as a mantissa and
radix which produces a close but not exact representation of a number. If
you round to a reasonable number of decimal places you will get the
correct result but if you insist on looking at the full precision of the
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 but
Try to use BigDecimal.
It should be OK.
--- Mangi, Rick [EMAIL PROTECTED] wrote:
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]
, 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
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