Can someone tell me how to solve this problem (in C++)? I try many ways to solve but I can't
This is my code
double n= 90.005;
cout<< setprecision(2)<< fixed<< n;
output: 90.00.
I expect output is 90.01.
But when I change n=90.006, output: 90.01