<?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>Issue: with printf() for floats/doubles not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54127/issue-with-printf-for-floats-doubles-not-working</link><description>Hi, I am trying to print double/float values, but Its printing blank. e.g. printk(&amp;quot; value:%.3f\n&amp;quot;, value); output: value:%.3f printk(&amp;quot; value:%lf\n&amp;quot;, value); output: value:%f I referred one of the solutions from &amp;quot; &amp;quot;&amp;gt;devzone.nordicsemi.com/.../printf-for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Nov 2019 09:00:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54127/issue-with-printf-for-floats-doubles-not-working" /><item><title>RE: Issue: with printf() for floats/doubles not working</title><link>https://devzone.nordicsemi.com/thread/218985?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 09:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ad1834-716a-447b-9f74-eb557d9c157f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please use printf for printing floating points:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47152/nrf9160-samples-cannot-use-sscanf-or-printk-with-float/186553#186553"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47152/nrf9160-samples-cannot-use-sscanf-or-printk-with-float/186553#186553&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works?&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></channel></rss>