<?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>MQX Software Solutions中的主题 printf  format %e does not work.</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/printf-format-e-does-not-work/m-p/293487#M9436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a float number data = 25.99978&lt;/P&gt;&lt;P&gt; and I want to using sprintf to format it to %e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sprintf(pointer, "%15.8e", data);&lt;/P&gt;&lt;P&gt;but pointer always 2.5e+01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I do so it can format the width to 15 and precision to 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Sep 2013 21:15:51 GMT</pubDate>
    <dc:creator>danielchai</dc:creator>
    <dc:date>2013-09-08T21:15:51Z</dc:date>
    <item>
      <title>printf  format %e does not work.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/printf-format-e-does-not-work/m-p/293487#M9436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a float number data = 25.99978&lt;/P&gt;&lt;P&gt; and I want to using sprintf to format it to %e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sprintf(pointer, "%15.8e", data);&lt;/P&gt;&lt;P&gt;but pointer always 2.5e+01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I do so it can format the width to 15 and precision to 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 21:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/printf-format-e-does-not-work/m-p/293487#M9436</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-09-08T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: printf  format %e does not work.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/printf-format-e-does-not-work/m-p/293488#M9437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figure it out. The exel format it automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 12:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/printf-format-e-does-not-work/m-p/293488#M9437</guid>
      <dc:creator>danielchai</dc:creator>
      <dc:date>2013-09-09T12:27:06Z</dc:date>
    </item>
  </channel>
</rss>

