Help please. I have a problem with the wrong calculations when using like double. For example, we use a code below:
double a = 2.01;
double b = 1.01;
double c = 100*(a - (int)a);
double d = 100*(b-(int)b);
In my log I see the following: c = 1.0000001 and d = 0.99999987. How to make so that calculations were more exact result, namely, 0.01? Thanks in advance for the help.