<?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>Printing float with printf using mesh SDK CMake</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50809/printing-float-with-printf-using-mesh-sdk-cmake</link><description>I&amp;#39;m compiling a custom application using the CMake scripts in the nRF mesh SDK , and I&amp;#39;m trying to print floats using vsnprintf (I&amp;#39;m guessing the problem is the same as with printf), but nothing is output. I&amp;#39;ve tried adding 
 add_link_options(&amp;quot; -u _printf_float</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2019 10:04:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50809/printing-float-with-printf-using-mesh-sdk-cmake" /><item><title>RE: Printing float with printf using mesh SDK CMake</title><link>https://devzone.nordicsemi.com/thread/203778?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 10:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95c9e67a-c6b3-4f81-a74c-f69ef52dc5ce</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;It&amp;#39;s because I was adding the flag with quotes.&lt;/p&gt;
&lt;pre&gt;add_link_options(&lt;span&gt;-u _printf_float&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;works. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Printing float with printf using mesh SDK CMake</title><link>https://devzone.nordicsemi.com/thread/203774?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 09:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092fbe45-11af-4bee-8b86-a885eb330a7e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try&amp;nbsp;snprintf() to see if it gives you the same result?&amp;nbsp;It should work as long as you build with&amp;nbsp;&lt;/span&gt;&lt;span&gt;-u _printf_float&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Printing float with printf using mesh SDK CMake</title><link>https://devzone.nordicsemi.com/thread/203175?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 22:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d238ecf6-6c2b-4c4f-adcd-2b01f3e1ec86</guid><dc:creator>BinderT</dc:creator><description>&lt;p&gt;Found it to be too much of a hassle to work with floats on ARM chips.&amp;nbsp;Mostly convert my numbers in code to there base value eg. 1.675V converts to 1675mV. Then add the decimal on the user interface side with string converters.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>