<?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>print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27831/print-float-numbers-in-mesh-sdk</link><description>Hello Nordic Dev zone! 
 I want to print some float values in my application (light_switch_app), but i cant print the float numbers using the __LOG() , and instead of the value it will be a blank, can you please help me with this ? 
 I&amp;#39;m using SEGGER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 12 May 2018 10:35:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27831/print-float-numbers-in-mesh-sdk" /><item><title>RE: print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/thread/131753?ContentTypeID=1</link><pubDate>Sat, 12 May 2018 10:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f77655-dc51-4e24-9b3f-27759056d700</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;The Mesh SDK 2.0 requires the nRF5 SDK 15.0, so it should have the same components.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/thread/131752?ContentTypeID=1</link><pubDate>Sat, 12 May 2018 10:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2520c6-7170-44b1-b6e3-2c337a9437cd</guid><dc:creator>aaronxu</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;__LOG() in &lt;strong&gt;mesh&lt;/strong&gt; SDK is not the same with SDK.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have try your method, but not work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/thread/109720?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 15:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc9f20b3-0f83-4b0c-987b-4cfd448aa756</guid><dc:creator>Kyle Krueger</dc:creator><description>&lt;p&gt;No worries&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/thread/109721?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 14:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84c251d0-a45d-47ff-a94b-ec2c7ea8d329</guid><dc:creator>MMG</dc:creator><description>&lt;p&gt;Thank you very much for the response , i will try it and if i face any problem i will post here.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: print float numbers in mesh sdk</title><link>https://devzone.nordicsemi.com/thread/109719?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 10:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9424e49-c6ec-466b-b244-09178775804d</guid><dc:creator>Kyle Krueger</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the  &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__log.html#ga89b38475decba73ad43184a0e20168cc"&gt;NRF_LOG_FLOAT(val)&lt;/a&gt; and  NRF_LOG_FLOAT_MARKER macros from the nRF5 SDK to do this. It is included from SDK 12 up to the latest version 14.2.&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://devzone.nordicsemi.com/question/142574/having-a-hard-time-printing-floats-that-are-less-than-1-with-many-digits-behind-the-decimal-point-using-nrf_log_float/?answer=142580#post-id-142580"&gt;related question&lt;/a&gt; might be useful if you want to create a custom macro for even more precision in your logs.&lt;/p&gt;
&lt;p&gt;If these are not included in the mesh SDK yet, I&amp;#39;d just copy the macros into your project from the nRF5 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>