The type of n is double. My problem is the output is not the same as input. For example, n = 1.999, I understand the output of the first and second one. But the last one, %20.16lf, I don't know why the output is like this: 1.9990000000000001. Why we have the number 1 here? And when n = 1.9999, the result is very strange.
Can you explain?
Thank you very much :)