<?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>How  convert double type to float?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42641/how-convert-double-type-to-float</link><description> The time transmitted from ALLSTAR DATA SOURCE is double type,and wanted to display time to LCD,so I want to convert double type to float ,and want to uS .How can i do that? 
Thanks a lot! </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How  convert double type to float?</title><link>https://community.arm.com/thread/97488?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2005 07:47:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0d1b5c93-b712-476c-bcf4-44687c3bc33d</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;&amp;quot;My mean is pointing to  64bits IEEE binary floating point value&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In that case you will have to write your own routine to convert it to a 32 bit IEEE754 float. There is a good description of the 32 bit format on this website - search for IEEE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  convert double type to float?</title><link>https://community.arm.com/thread/73487?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2005 05:55:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a9009193-22d3-489b-9880-64364a54e585</guid><dc:creator>Nantian Gumo</dc:creator><description>&lt;p&gt;Sorry ,I couldn&amp;#39;t described the question clearly at noon.My mean is pointing to &lt;b&gt; 64bits IEEE binary floating point value &lt;/b&gt;,which binary structure as following:&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Double Float (64 bits )&lt;br /&gt;
MSB (bit 63) = Sign&lt;br /&gt;
Bit 62..52 = Exp&lt;br /&gt;
Bit 51..00 = Mantissa&lt;br /&gt;
2exp(-1*bit51) + 2 exp(-2*bit50).......&lt;br /&gt;
Value = Sign * 1.mantissa * 2 exp(EXP-1023)&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  convert double type to float?</title><link>https://community.arm.com/thread/87384?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2005 05:06:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a022086d-0f2b-4cbf-8458-da2e387bba69</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;&amp;quot;Remember, the free Evaluation version doesn&amp;#39;t do floating point...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
And neither version does double in the commonly assumed 64 bit IEEE format. In C51 a double and a float are both 32 bit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  convert double type to float?</title><link>https://community.arm.com/thread/44694?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2005 05:01:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ad6a82b5-2589-4524-a0e5-f7732165e6ed</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;&amp;quot;How can i do that?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Can you provide a link to a document that describes the data output from this device, or provide a better description of it yourself?&lt;br /&gt;
&lt;br /&gt;
What exactly do you mean when you say &amp;#39;double&amp;#39; - a 64 bit IEEE binary floating point value, an ASCII representation of a floating point value, or what?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How  convert double type to float?</title><link>https://community.arm.com/thread/44693?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2005 01:03:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:960aab36-9c2a-45a0-880a-92741c95c354</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;How will that help you to display it on an LCD?&lt;br /&gt;
&lt;br /&gt;
In &amp;#39;C&amp;#39;, a simple assignment will do it - but, If you already have the value as a double, why can&amp;#39;t you just display that, and insert any decimal point &amp;quot;manually&amp;quot; as required??&lt;br /&gt;
&lt;br /&gt;
Remember, the free Evaluation version doesn&amp;#39;t do floating point...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>