<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Float number problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1444730#M48492</link>
    <description>&lt;P&gt;Hello everyone, my code used to work fine, but I changed the chip and added some new lines to my code. I used to read two temperatures (LM35) from ADC and I want my data to be float. Now instead of dot it shows temperatures with something similar to a y with two dots on top of it. For example instead of showing 25.3 it shows something like 25y3. I can show the temperatures in integer correctly, but when I change the data to float it shows something weird like 25y3. It used to work fine. I added my code and the screenshot of the bluetooth app. Btw my chip is LPC1768&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 05:13:06 GMT</pubDate>
    <dc:creator>Alexshea</dc:creator>
    <dc:date>2022-04-18T05:13:06Z</dc:date>
    <item>
      <title>Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1444730#M48492</link>
      <description>&lt;P&gt;Hello everyone, my code used to work fine, but I changed the chip and added some new lines to my code. I used to read two temperatures (LM35) from ADC and I want my data to be float. Now instead of dot it shows temperatures with something similar to a y with two dots on top of it. For example instead of showing 25.3 it shows something like 25y3. I can show the temperatures in integer correctly, but when I change the data to float it shows something weird like 25y3. It used to work fine. I added my code and the screenshot of the bluetooth app. Btw my chip is LPC1768&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 05:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1444730#M48492</guid>
      <dc:creator>Alexshea</dc:creator>
      <dc:date>2022-04-18T05:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1444894#M48494</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;Hi, could you please help me? I showed this code to you many times. Someone else also told me my float variables shouldn't have that much zeros.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 05:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1444894#M48494</guid>
      <dc:creator>Alexshea</dc:creator>
      <dc:date>2022-04-18T05:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446007#M48513</link>
      <description>&lt;P&gt;Hello Aleshea,&lt;/P&gt;
&lt;P&gt;How about use another terminal to show result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 02:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446007#M48513</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-04-20T02:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446644#M48519</link>
      <description>&lt;P&gt;Thank you for the reply. Actually, I tried that with LabVIEW too. Problem wasn't with the Bluetooth terminal. Interestingly, it works fine when I use only uart3, but when I activate uart1 it messes up float numbers. I could send them as uint and instead of sending the data in float I sent them in uint and devided it by 10 in LabVIEW, so that I can see the data in LabVIEW like float numbers. So, I bypassed this problem, though still it's good to know why activating uart1 messes up the data in float&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446644#M48519</guid>
      <dc:creator>Alexshea</dc:creator>
      <dc:date>2022-04-20T20:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446857#M48521</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I think you can consider to change the library or the float number format as the following screenshot.&lt;/P&gt;
&lt;P&gt;1)change the library&lt;/P&gt;
&lt;P&gt;Setting-&amp;gt;Miscellaneous-&amp;gt;library header&lt;/P&gt;
&lt;P&gt;2)change the float format&lt;/P&gt;
&lt;P&gt;Setting-&amp;gt;Architecture-&amp;gt;Floating point.&lt;/P&gt;
&lt;P&gt;Hope it can provide a clue.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1650507554094.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177544i24115840C56B5541/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1650507554094.png" alt="xiangjun_rong_0-1650507554094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 02:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1446857#M48521</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-04-21T02:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Float number problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1447451#M48538</link>
      <description>&lt;P&gt;Thank you so much. I think it'll work this way. I sent the data in uint16 and change it into float in LabVIEW, but I may face this problem again and can try what you recommended&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:19:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Float-number-problem/m-p/1447451#M48538</guid>
      <dc:creator>Alexshea</dc:creator>
      <dc:date>2022-04-21T20:19:02Z</dc:date>
    </item>
  </channel>
</rss>

