I want to know the reason why i am getting so many decimal points while doing this sum of double numbers
System.out.println(Double.parseDouble(".56"));
double dvalue=1.12+Double.parseDouble(".56");
System.out.println(dvalue);
output is as follows 0.56 and 1.6800000000000002 why second summation is adding those decimals it should simply 1.68