<?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>Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91617/nrf52840-float-precision-is-not-enough</link><description>I need to be accurate to five decimal places. 
 Use nrf52840 and ses. 
 Test code: 
 
 Execute d=atof(mm)/60.0 result 0.70693.It&amp;#39;s right. 
 But e xecute d = 0.70693+22 result 22.7069.It is missing a decimal place. 
 I need to be accurate to five decimal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Sep 2022 02:10:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91617/nrf52840-float-precision-is-not-enough" /><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384894?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 02:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d329434-36d3-4d7f-b423-156156e9286c</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662515888347v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662515906990v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662516600055v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384893?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1df276-d573-4121-82af-5192d325bffc</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I rarely&amp;nbsp;use SES but normally right click on the variable in the watch window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384892?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ace7cb7-4117-43ec-82f1-cdce64713ddb</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;hi:&lt;/p&gt;
&lt;p&gt;Where to modify it?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662515131719v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384890?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a17b0bee-96a3-4253-ab4e-d6f0a4888c6b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Might be just the debug watch default is float. &amp;nbsp;Try to change it to double&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384887?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e55b9d5-ad2b-4a90-a51f-988adaa2088a</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662514555582v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384886?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e0d6e50-3e25-41b1-945a-d30edf2e50fb</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;is the variable&amp;nbsp;gps_location.la a double not float ? Did you check ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384883?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 01:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e109643-b2e1-4ccc-a82b-c26be55aa38e</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Priyanka,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It still can&amp;#39;t be solved.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662512649180v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840 float precision is not enough</title><link>https://devzone.nordicsemi.com/thread/384753?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 10:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e9f642a-b9fd-4dbf-9871-cfaef12f5bea</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;Could you try executing&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;d =&amp;nbsp;&lt;/span&gt;&lt;span&gt;0.70693+22.0 instead?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>