double * double appears to be a bug
double num=36775.715;
double num1 = num*100.0;
System.out.println("PRODUCT = "+num1);
Above simple code produces output as 3677571.4999999995
while
double num=36775.815;
double num1 = num*100.0;
System.out.println("PRODUCT = "+num1);
produces
3677581.5 correctly
Can anyone explain why this happens and what is the solution?

