Name: nt126004 Date: 08/28/2001
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
public class d{
public static void main(String [] args) {
double i = 0.3 + 0.03;
System.out.println(i);
}
}
the result should be i == 0.33
but the result given is 0.329999999998
(Review ID: 130785)
======================================================================
- duplicates
-
JDK-6416430 Bug in Math Package: Input : 16.15 and Output : 16149
-
- Closed
-
- relates to
-
JDK-4704007 (c = a - b ) or (a = c + b) maths equation false with double/float
-
- Closed
-
-
JDK-4950948 loop statements with double-type index, can ends at incorrect index.
-
- Closed
-