<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Floating Point Representation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109225/floating-point-representation</link><description>I am trying to understand how floating point numbers are represented on thingy 53, using the code below. 
 
 
 
 When I look at the console here is the output: 
 
 
 My first question is why can&amp;#39;t I see the float value? 
 
 Second and main question, how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Mar 2024 11:17:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109225/floating-point-representation" /><item><title>RE: Floating Point Representation</title><link>https://devzone.nordicsemi.com/thread/474058?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 11:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0b29fb-6de8-49da-a660-dafecab8c184</guid><dc:creator>rrrobinson</dc:creator><description>&lt;p&gt;Awesome thanks - I had tried using&amp;nbsp;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF but with your suggestion I see floats as expected.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Floating Point Representation</title><link>https://devzone.nordicsemi.com/thread/473619?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 11:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b978a82-e707-4d85-99a5-128e4c6a1492</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the update. Regarding the printing of float numbers, please ensure CONFIG_PICOLIBC_IO_FLOAT=y is enabled in your build if you&amp;#39;re using the picolibc library, which is the default in the newer SDK versions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Floating Point Representation</title><link>https://devzone.nordicsemi.com/thread/473616?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 11:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b97e66-6226-48c4-96fe-5be4cdeab44b</guid><dc:creator>rrrobinson</dc:creator><description>&lt;p&gt;Realised this was a lack of undesrtaning about how floating point numbers are represented (IEE-754) - Found this tool to be helpful for anyone else who is unsure&amp;nbsp;&lt;a id="" href="https://www.h-schmidt.net/FloatConverter/IEEE754.html"&gt;https://www.h-schmidt.net/FloatConverter/IEEE754.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Would still like to know how to print floating point numbers to the console.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>