I have
Code:
double m=0.5;
cout<<setprecision(20);
Then the output is 0.5 but
Code:
double m=0.6;
cout<<setprecision(20);
the output is 0.59999999999999999998
What happens and how can I fix this error ?

Thanks in advance,