Hello, I decided to write a program, I need to add two double numbers in it ... And what, when adding a double 0.7 + 9 = 9.699999999. Here is the code:
g++; for (int k = 0; k < g; k++) { r = r * 0.1; } r1 = r1 + r; r is the same 0.7, a r1 = 9 ... What is the error ??