<?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: sqrt not returning proper value in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178890#M5928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After searching around, this project I do not think was created with the PE. I saw someone said they added -Fd to the target command line arguments options and so I did that and it is now working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I know what I would or would not need when first creating a project and then down the road, say "Hey! I need to do this but did not enable it in the PE when I first started". When I click on "processor expert" at the top, it gives me some windows that says "Project demo.mcp does not contain PE project.... do you want to add a new PE project?" and when saying yes, my code no longer compiles and it cannot locate the header files for the MC9S09LC60.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can get my current code working so that I can utilize the PE or would I have to start over again? I saw that there was another "main" after going through the steps above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2010 00:44:17 GMT</pubDate>
    <dc:creator>Pyretta</dc:creator>
    <dc:date>2010-02-25T00:44:17Z</dc:date>
    <item>
      <title>sqrt not returning proper value</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178888#M5926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;double&amp;nbsp;bb, cc;&lt;/P&gt;&lt;P&gt;bb = 16;&lt;BR /&gt;cc = sqrt(bb);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result of CC in the Data:2 windows is the following&lt;/P&gt;&lt;P&gt;bb 16 double&lt;/P&gt;&lt;P&gt;cc -7.6513192831291111e+221 double&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there a way to limit the decimal to say 6 locations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 22:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178888#M5926</guid>
      <dc:creator>Pyretta</dc:creator>
      <dc:date>2010-02-24T22:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: sqrt not returning proper value</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178889#M5927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, which chip are you targeting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things to check:&lt;/P&gt;&lt;P&gt;- make sure your stack is big enough.&lt;/P&gt;&lt;P&gt;- is the project linking the correct libraries (double format with 64 bit vs 32 bit libraries)?&lt;/P&gt;&lt;P&gt;- try the same snippet with a wizard generated project. Ev. increase STACKSIZE in prm (not sure if necessary, also depends on the targeted device).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 23:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178889#M5927</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-02-24T23:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: sqrt not returning proper value</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178890#M5928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After searching around, this project I do not think was created with the PE. I saw someone said they added -Fd to the target command line arguments options and so I did that and it is now working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I know what I would or would not need when first creating a project and then down the road, say "Hey! I need to do this but did not enable it in the PE when I first started". When I click on "processor expert" at the top, it gives me some windows that says "Project demo.mcp does not contain PE project.... do you want to add a new PE project?" and when saying yes, my code no longer compiles and it cannot locate the header files for the MC9S09LC60.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can get my current code working so that I can utilize the PE or would I have to start over again? I saw that there was another "main" after going through the steps above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 00:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sqrt-not-returning-proper-value/m-p/178890#M5928</guid>
      <dc:creator>Pyretta</dc:creator>
      <dc:date>2010-02-25T00:44:17Z</dc:date>
    </item>
  </channel>
</rss>

