This example shows one of the limitations in Java especially in dealing with Floating Point calculations.
Direction:
- Download the FloatingPoint.java file
- Compile it using the “javac FloatingPoint.java” command (If you dont have the Java SDK, and only have the JRE, then you can just download this compiled class — FloatingPoint.class)