Is this a bug in jvm the code bellow gives the result : 409.99999999999994 !
public class HelloWorld{
public static void main(String []args){
double d = 4.10d;
double d2 = d * 100d ;
System.out.println(d2);
}
}
changing double by float solves the problem, but why?