This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

use of printf function for floating point number format

Hi,
I have got the wrong result when I use the function printf with format of floating point number which is more than 1000000.
For example:
f=10000012;
printf("\n\r%4.3f",f);
and I have got only 10000010.000. I check the value of variable f in memory by IEEE-754 standard which is correct as 0x4B18968C (10000012).
I don't know the output of printf is incorrectt.
Please help understand and resolve this problem.

0