<?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>How to change the data type from integer to floating point so i can read floating ponit voltages on copper coap?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21625/how-to-change-the-data-type-from-integer-to-floating-point-so-i-can-read-floating-ponit-voltages-on-copper-coap</link><description>I have an iot/coap environment setup and i want to read input voltage connected to p0.01.I can read the input in terms of resolution(0-1023).I can convert this values to voltage(0-3).I want to read voltage in terms of floating point(1.0-3.3).How can i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Apr 2017 11:29:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21625/how-to-change-the-data-type-from-integer-to-floating-point-so-i-can-read-floating-ponit-voltages-on-copper-coap" /><item><title>RE: How to change the data type from integer to floating point so i can read floating ponit voltages on copper coap?</title><link>https://devzone.nordicsemi.com/thread/84897?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 11:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c93d4ad1-d0a2-4487-9c17-8ea9ae5bee6d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Then you need to buy a Keil license, or switch to a compiler/IDE that does not have the code size limit. Examples are to use GCC with the Makefiles we provide, which can also be used together with &lt;a href="https://devzone.nordicsemi.com/tutorials/7"&gt;Eclipse&lt;/a&gt;, or &lt;a href="https://devzone.nordicsemi.com/blogs/1032/segger-embedded-studio-a-cross-platform-ide/"&gt;Segger Embedded Studio&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the data type from integer to floating point so i can read floating ponit voltages on copper coap?</title><link>https://devzone.nordicsemi.com/thread/84896?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 14:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd65831-2281-4cb1-8b39-75ad5c72c75d</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;If i use float in that function i get error code size to big for linker while compiling. Error L6050U:.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the data type from integer to floating point so i can read floating ponit voltages on copper coap?</title><link>https://devzone.nordicsemi.com/thread/84895?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 10:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68048c1-a924-4a1f-80cf-2780553781a7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should store the result in a new variable of type float. &lt;code&gt;adc_buffer&lt;/code&gt; is of type &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__nrf__drv__adc.html"&gt;&lt;code&gt;nrf_adc_value_t&lt;/code&gt;&lt;/a&gt;, which is a typedef of &lt;code&gt;int16_t&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>