<?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 How to print the &amp;quot;negative float point number&amp;quot; to show negative value? in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056720#M8220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRINTF("negative float test = %f", &lt;STRONG&gt;-1.234&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;to print the negative float point number, I got the positive value from console, like&lt;/P&gt;&lt;P&gt;"negative float test = &lt;STRONG&gt;1.234000&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to fix it to show the real negative value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. define PRINTF_FLOAT_ENABLE=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2020 10:01:52 GMT</pubDate>
    <dc:creator>felix1</dc:creator>
    <dc:date>2020-07-17T10:01:52Z</dc:date>
    <item>
      <title>How to print the "negative float point number" to show negative value?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056720#M8220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRINTF("negative float test = %f", &lt;STRONG&gt;-1.234&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;to print the negative float point number, I got the positive value from console, like&lt;/P&gt;&lt;P&gt;"negative float test = &lt;STRONG&gt;1.234000&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me to fix it to show the real negative value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. define PRINTF_FLOAT_ENABLE=1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 10:01:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056720#M8220</guid>
      <dc:creator>felix1</dc:creator>
      <dc:date>2020-07-17T10:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the "negative float point number" to show negative value?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056721#M8221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Hi Felix,&lt;BR /&gt;&lt;BR /&gt;Negative floating point values can be printed by opening the Project Properties and defining both “PRINTF_FLOAT_ENABLE” and “PRINTF_ADVANCED_ENABLE” to 1 in the Preprocessor settings. This is shown below using the hello_world SDK example project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PrintNegativeFloats.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116495iE81444ABE2EC511B/image-size/large?v=v2&amp;amp;px=999" role="button" title="PrintNegativeFloats.png" alt="PrintNegativeFloats.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Let me know if this solution works for you. If not, could you provide more details on your environment to help find a solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Kaleb Belete&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056721#M8221</guid>
      <dc:creator>kbelete</dc:creator>
      <dc:date>2020-07-21T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the "negative float point number" to show negative value?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056722#M8222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaleb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your right answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to ask another question about floating point number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use CMSIS DSP library to do&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;FFT (fast Fourier transform), this transform will use real number and complex number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;I use "Redlib (nohost-&lt;STRONG&gt;nf&lt;/STRONG&gt;)" library now, and it seems ok to compile FFT API like "arm_rfft_fast_f32()".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Do I need to change the "Redlib (nohost-&lt;STRONG&gt;nf&lt;/STRONG&gt;)" to another library for using floating point number?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 12:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-print-the-quot-negative-float-point-number-quot-to-show/m-p/1056722#M8222</guid>
      <dc:creator>felix1</dc:creator>
      <dc:date>2020-07-22T12:06:34Z</dc:date>
    </item>
  </channel>
</rss>

