<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 not printing</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/59464/floating-point-not-printing</link><description>I have the following statements throughout my code. 
 printk(&amp;quot;Temperature(BMP280): %3.2f %s\r\n&amp;quot;,tempFloat,tempUnitsCentigrade?&amp;quot;C&amp;quot;:&amp;quot;F&amp;quot;); 
 
 I would like the format %3.2f to print the data in floating point. I know there is a floating point library that</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 25 Mar 2020 12:45:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/59464/floating-point-not-printing" /><item><title>RE: floating point not printing</title><link>https://test-devzone.nordicsemi.com/thread/241599?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 12:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6354cfcf-247d-4ff1-aa2c-d4e2ed1a3416</guid><dc:creator>user87403</dc:creator><description>&lt;p&gt;changing to printf worked. thank you. This ticket can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: floating point not printing</title><link>https://test-devzone.nordicsemi.com/thread/241506?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 07:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6946d4f0-a3ea-454a-a149-6565a2feefe7</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is correct, but you&amp;#39;ll also have to use print&lt;em&gt;&lt;span style="text-decoration:underline;"&gt;f&lt;/span&gt;&lt;/em&gt;, not print&lt;span style="text-decoration:underline;"&gt;&lt;em&gt;k&lt;/em&gt;&lt;/span&gt; to enable float print.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: floating point not printing</title><link>https://test-devzone.nordicsemi.com/thread/241483?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 22:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51fb8c3e-5e58-473f-ae3e-9098626d9678</guid><dc:creator>user87403</dc:creator><description>&lt;p&gt;I have the following line in my prj.conf file. is this correct or do I need to do more or change this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>