<?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>In an array.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29554/in-an-array</link><description> 
Hello, 
I want to convert a 14 digit word (which is a float) to the elements
of an array.EXample:987654321012.34 to
b[0]=9;b[1]=8;b[2]=7...etc..Can anyone please help..Thanks in
advance... 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: In an array.</title><link>https://community.arm.com/thread/91226?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2011 04:54:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6801d71a-4e4c-4354-a144-d4be7df9f97f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t think C51 supports that - check the &lt;b&gt;Manual&lt;/b&gt;.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In an array.</title><link>https://community.arm.com/thread/59839?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2011 04:51:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:147fb3e1-8671-432d-8612-dfbe018df57e</guid><dc:creator>Mike Kleshov</dc:creator><description>&lt;p&gt;&lt;p&gt;
I agree with Andrew: &lt;b&gt;sprintf()&lt;/b&gt; does exactly that.&lt;br /&gt;
One thing doesn&amp;#39;t look right, though: a 32-bit &lt;b&gt;float&lt;/b&gt; only has
enough precision for 7 decimal digits. For 14 digits to be accurate,
this would have to be a 64-bit &lt;b&gt;double&lt;/b&gt;.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In an array.</title><link>https://community.arm.com/thread/66929?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2011 04:09:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9bef287a-3aac-4ff3-b7c9-60d91721d6d9</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;b&gt;&lt;br /&gt;
sprintf ?&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>