Handling currency calculations in Java business application
March 29, 2009 6 Comments
Recently I saw a weird floating issue in Java application which made our currency calculation wrong. Can you guess what would be the output of the below code?
System.out.println(38.0 - 26.6);