I have a problem with showing a float number with exactly 8 decimals. I use setprecision but the problem is that for example i want to print 1.61666666 and with setprecision it shows 1.61666667. I don't want to round it, just to print the first 8 decimals.
cout.precision(8);
cout << fixed << 97.0/60.0 << endl;
printf("%.8f", 97.0 / 60.);
this is the code