<?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>MCUXpresso GeneralのトピックRe: PRINTF() question</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058174#M3510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The symbol #PRINTF_ADVANCED_ENABLE needs to be set. That adds support in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2020 17:03:33 GMT</pubDate>
    <dc:creator>mspenard603</dc:creator>
    <dc:date>2020-04-08T17:03:33Z</dc:date>
    <item>
      <title>PRINTF() question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058172#M3508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to left justify a float using PRINTF("%-4.2f", myfloat); But its not interpreting the -&lt;BR /&gt;&lt;BR /&gt;How is this done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058172#M3508</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2020-04-03T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: PRINTF() question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058173#M3509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;In the case you are using redlib, you have to remove "CR_INTEGER_PRINTF" define from project settings -&amp;gt; Compiler -&amp;gt; Preprocessor.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;The effect should be like this:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; float x = 123.456;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("++++++++++++++++\n");&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%6.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%9.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%12.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%-6.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%-9.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%-12.2f\n", x);&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Output:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;++++++++++++++++&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;123.46&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp; 123.46&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123.46&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;123.46&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;123.46&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;123.46&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;More details on CR_INTEGER_PRINTF can be found on MCUXpresso_IDE_User_Guide.pdf, chapter "16.5.1 Redlib printf Variants", paragraph: "Integer only vs full printf (including floating point)"&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Greetings,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 08:08:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058173#M3509</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2020-04-07T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: PRINTF() question</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058174#M3510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The symbol #PRINTF_ADVANCED_ENABLE needs to be set. That adds support in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/PRINTF-question/m-p/1058174#M3510</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2020-04-08T17:03:33Z</dc:date>
    </item>
  </channel>
</rss>

