<?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>PCA10056 and float</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50243/pca10056-and-float</link><description>Hi, 
 I use nrf 52832 with pca10056 and i need to use float to filter my data with low pass filter, but with this device, it doesn&amp;#39;t work. Do you know how can I use float? 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2019 12:11:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50243/pca10056-and-float" /><item><title>RE: PCA10056 and float</title><link>https://devzone.nordicsemi.com/thread/200512?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 12:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ffa6ccb-0000-4273-8b5b-80aee4aeebdf</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, you need extra support for &lt;em&gt;&lt;strong&gt;printing&lt;/strong&gt;&lt;/em&gt; floats.&lt;/p&gt;
&lt;p&gt;You will have to consult the SES documentation for details; it&amp;#39;s a general thing - not specific to Nordic.&lt;/p&gt;
&lt;p&gt;The chip itself is a Cortex-M4F - with the floating point unit (FPU) - so it does support floating-point operations.&lt;/p&gt;
&lt;p&gt;But &lt;em&gt;&lt;strong&gt;printing&lt;/strong&gt; &lt;/em&gt;FP values is a library issue.&lt;/p&gt;
&lt;p&gt;eg, see:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18625/nrf_log_info-does-not-show-float-number"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/18625/nrf_log_info-does-not-show-float-number&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38703/cannot-print-more-than-two-values-in-a-single-command-line-using-nrf_log_float_marker/200784#200784"&gt;devzone.nordicsemi.com/.../200784&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10056 and float</title><link>https://devzone.nordicsemi.com/thread/200503?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 11:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ef4748-940f-498e-be9a-5d0966fa1b0e</guid><dc:creator>lydie</dc:creator><description>&lt;p&gt;Hi, thanks for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just try to print a float like this :&lt;/p&gt;
&lt;p&gt;float a = -1,9791;&lt;/p&gt;
&lt;p&gt;printf(&amp;ldquo;a: %f&amp;rdquo;, a);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when i run, there&amp;nbsp;is just a blank. So I don&amp;rsquo;t know if I need to setting parameters in SEGGER embedded or if it&amp;rsquo;s my device which cannot support float.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10056 and float</title><link>https://devzone.nordicsemi.com/thread/200493?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 11:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a9c705-4c56-4099-ba73-c8b3c1526098</guid><dc:creator>awneil</dc:creator><description>[quote userid="81455" url="~/f/nordic-q-a/50243/pca10056-and-float"]it doesn&amp;#39;t work[/quote]
&lt;p&gt;What, exactly, &amp;quot;doesn&amp;#39;t work&amp;quot;? and in what way(s),exactly, does it &amp;quot;not work&amp;quot;?&lt;/p&gt;
&lt;p&gt;What have you tried?&lt;/p&gt;
&lt;p&gt;What results were you &lt;em&gt;expecting&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What results are you actually &lt;em&gt;getting&lt;/em&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What have you done to verify your initial expectations?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What investigation / testing / debugging have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;done to find what&amp;#39;s happening?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>