I began read about Java programming these days, and I find something strange in simple code
double sum= 0.012 + 0.012+ 0.012;
System.out.println("the value is" + sum);
the output is. 0.036000000000000004
but if I add 0.12 + 0.12 + 0.12 the result is 0.36 why?