<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>use of printf function for floating point number format</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42295/use-of-printf-function-for-floating-point-number-format</link><description> 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(&amp;quot;\n\r%4.3f&amp;quot;,f); 
and I have got only 10000010.000. I check the value of variable f in</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: use of printf function for floating point number format</title><link>https://community.arm.com/thread/41863?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2004 03:36:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:30020d6b-0ed2-4467-9cdb-b54407b56fa5</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;I think the problem here is that floats are only required to have 6 digits of precision. I guess you&amp;#39;ll have to be grateful that you seem to be getting 7.&lt;br /&gt;
&lt;br /&gt;
Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>