I was wondering, why my simple addition of some double values leads to the following results in Java:
double a = 1 + 1E-10; // 1.0000000001 (as expected)
double b = 1 + 1E-15; // 1.000000000000001 (as expected)
double c = 1 + 1E-20; // 1.0 (why?)
I thought I can at least add a value of Double.MIN_VALUE, which seems to be 4.9E-324.
What am I doing wrong here?