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:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. November 2001 17:47
An: 'Tomcat Users
As in most other programming languages float
and double are implemented in way that numbers
are not represented exactly. That's caused by
the internal format which is used to store
floats and doubles.
If you want know more of the basics have a look at
That changes nothing.
If the left side of an assignment is double,
all numbers to the right are automagically
double. Such helpers are just needed if the
left side has a lower precision than double
(float, int, short, byte)
The only ways to get more precise results:
- use BigDecimal.
-