A
ai lian
When I use printf to print a large double number, the result is not
the same as the original input number. For example:
double num=899999999999.894400;
printf("%lf\n",num);
The output is: 899999999999.894409
Could anyone tell me what the problem is? How can I get the right
output?
Thanks.
the same as the original input number. For example:
double num=899999999999.894400;
printf("%lf\n",num);
The output is: 899999999999.894409
Could anyone tell me what the problem is? How can I get the right
output?
Thanks.