G
Guest
Hi
Looking at the following code ...
double a = 100.1;
double b = 0.1;
double c = a + b;
I would like to know why the value of c is 100.19999999999999 and not 100.2?
What should I do to correct this.
Thanks.
Looking at the following code ...
double a = 100.1;
double b = 0.1;
double c = a + b;
I would like to know why the value of c is 100.19999999999999 and not 100.2?
What should I do to correct this.
Thanks.