<?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>Float value nrfconnect mobile app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24686/float-value-nrfconnect-mobile-app</link><description>Hello Everyone, 
 I am new to nrf51822 (using S130). I made some custom service that accepts float numbers.
This might be noob question: I want to send float values from nrfconnect android mobile app which accepts float value as Exponent and fraction</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Sep 2017 10:51:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24686/float-value-nrfconnect-mobile-app" /><item><title>RE: Float value nrfconnect mobile app</title><link>https://devzone.nordicsemi.com/thread/97147?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 10:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101ca41e-a222-455c-8082-43949c6f1082</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, that conversion looks correct.&lt;/p&gt;
&lt;p&gt;I think maybe you need to enter it in decimal format, e.g. 0xFD needs to be entered as 253&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Float value nrfconnect mobile app</title><link>https://devzone.nordicsemi.com/thread/97148?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 01:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e6ebfb-f07f-4738-b89a-dd6b833134f4</guid><dc:creator>Dhiraj</dc:creator><description>&lt;p&gt;Thank you for the reply, Sigurd.
Referring the document mentioned in the Link, I calculated the exponent and mantissa for 0.405 as follows:
0.405= 405*10^-3
405=&amp;gt; 0x000195
-3=&amp;gt; 0xFD
Therefore, the FLOAT-Type representation of 0.405 is 0xFD000195.
Is this conversion correct?
One more issue is in the nrf-Connect android app, if I select data-type as FLOAT 32, the app only allows to write numbers and doesn`t allows to write alphabets. How to write &amp;quot;FD&amp;quot; in the field of exponent?
Am I missing something?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Float value nrfconnect mobile app</title><link>https://devzone.nordicsemi.com/thread/97146?ContentTypeID=1</link><pubDate>Sun, 03 Sep 2017 09:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ab7f11-bdb5-4419-99e6-2a421845fe74</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you write to a characteristic with the nRF-Connect android app, you have the option to select the data-type. Here you can select &lt;code&gt;FLOAT 32&lt;/code&gt;, and this gives you the option to enter the exponent and fraction.&lt;/p&gt;
&lt;p&gt;The link to white paper for transcoding can be found &lt;a href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=272346"&gt;here&lt;/a&gt;. Take a look at page 10 and page 11.&lt;/p&gt;
&lt;p&gt;Quote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Consider a temperature measurement of
36.4 degrees Celsius with precision of 0.1 degrees Celsius.  The FLOAT-Type representation is a 32-bit value
consisting of an exponent of an 8-bit
signed integer followed by a mantissa
of a 24-bit signed integer; here, the
exponent is -1 (0xFF) and the mantissa
is 364 (0x00016C). Therefore, the
FLOAT-Type representation of 36.4 is
0xFF00016C.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Float value nrfconnect mobile app</title><link>https://devzone.nordicsemi.com/thread/97145?ContentTypeID=1</link><pubDate>Sat, 02 Sep 2017 02:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05340ed-f3a0-4400-8a7f-67f6b1b53cee</guid><dc:creator>Dhiraj</dc:creator><description>&lt;p&gt;Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>