While testing this simple piece of code in eclipse, I found that the numbers after the decimal are not accurate always. Why is that?
int kj = 1;
float we = 1.1f;
double dd = we + kj ; // prints 2.0999999046325684!!
int kj = 1, kl = 1;
float we = 11.1f;
double dd = we + kj + kl; //prints 13.100000381469727