<?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 Re:  sprintf and float in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/1837293#M33464</link>
    <description>&lt;P&gt;For me I found something in the linker settings. Project Properties.&lt;/P&gt;&lt;P&gt;checkboxes for printf and scanf floats.&lt;/P&gt;&lt;P&gt;- this seemed to work for sprintf too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rjleiser_0-1711629896315.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/270974iF3010772BF4EE49B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rjleiser_0-1711629896315.png" alt="rjleiser_0-1711629896315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 12:45:33 GMT</pubDate>
    <dc:creator>rjleiser</dc:creator>
    <dc:date>2024-03-28T12:45:33Z</dc:date>
    <item>
      <title>sprintf and float</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603494#M32249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working wih LpcXpresso IDE and have problems to use the function sprintf() with float conversion. A lot of hints are available in the internet (e.g. uses -u _printf_float). But I do not know, how to handle this. Can anybody give me a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603494#M32249</guid>
      <dc:creator>andreaskneissl</dc:creator>
      <dc:date>2016-12-12T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re:  sprintf and float</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603495#M32250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very hard to give a solution if you don't describe the problem. Please describe exactly your problem and show us the code you are using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 17:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603495#M32250</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2016-12-12T17:11:55Z</dc:date>
    </item>
    <item>
      <title>Re:  sprintf and float</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603496#M32251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code example:&lt;/P&gt;&lt;P&gt;char temp[20];&lt;/P&gt;&lt;P&gt;float wert=1.234&lt;/P&gt;&lt;P&gt;sprintf(temp,"%1.3f",wert)&lt;BR /&gt;The result is an empty string. If I use an integer wert and format it with "%d" I get the right string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 06:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603496#M32251</guid>
      <dc:creator>andreaskneissl</dc:creator>
      <dc:date>2016-12-13T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re:  sprintf and float</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603497#M32252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is your project configured to use Redlib, Newlib or NewlibNano as your selected C library?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389152"&gt;What are Redlib and Newlib?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Redlib, then make sure you haven't got CR_INTEGER_PRINTF symbol defined:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389140"&gt;Using printf()&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you are using NewlibNano, then make sure you have "Enable printf/scanf float" enabled in Project properties:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389086"&gt;Newlib-Nano Support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need further assistance, then please confirm the version of LPCXpresso IDE that you are using, and export and post an example project that shows up your problem:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630625"&gt;https://community.nxp.com/message/630625&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/603497#M32252</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-12-13T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re:  sprintf and float</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/1837293#M33464</link>
      <description>&lt;P&gt;For me I found something in the linker settings. Project Properties.&lt;/P&gt;&lt;P&gt;checkboxes for printf and scanf floats.&lt;/P&gt;&lt;P&gt;- this seemed to work for sprintf too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rjleiser_0-1711629896315.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/270974iF3010772BF4EE49B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rjleiser_0-1711629896315.png" alt="rjleiser_0-1711629896315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 12:45:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/sprintf-and-float/m-p/1837293#M33464</guid>
      <dc:creator>rjleiser</dc:creator>
      <dc:date>2024-03-28T12:45:33Z</dc:date>
    </item>
  </channel>
</rss>

