<?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 CodeWarrior Version 5.1 and Floating Point Library in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-Version-5-1-and-Floating-Point-Library/m-p/657475#M5816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On of our customer is using CodeWarrior Development Studio for the S12(X) Version 5.1, build 10221. He is testing how the floating point library handles overflow.&amp;nbsp; If &amp;nbsp;he multiply 1.8e19 times 1.8e19 it gives him +INF (0x7f800000) which is what he would expect.&amp;nbsp; If he multiply 3.4e19 time 1.8e19, I get NAN, which he did not expect. &amp;nbsp;He was expecting +INF.&amp;nbsp; If he multiply 3.4e19 time 3.4e19 &amp;nbsp;he gets -0 (0x80000000). This one is a problem.&amp;nbsp; In a control system you never want to get 0 when multiplying two large numbers together.&amp;nbsp; Do you have any idea how he can trap this overflow so he don’t get 0 for his result?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 09:14:48 GMT</pubDate>
    <dc:creator>HeMyFAE</dc:creator>
    <dc:date>2017-01-03T09:14:48Z</dc:date>
    <item>
      <title>CodeWarrior Version 5.1 and Floating Point Library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-Version-5-1-and-Floating-Point-Library/m-p/657475#M5816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On of our customer is using CodeWarrior Development Studio for the S12(X) Version 5.1, build 10221. He is testing how the floating point library handles overflow.&amp;nbsp; If &amp;nbsp;he multiply 1.8e19 times 1.8e19 it gives him +INF (0x7f800000) which is what he would expect.&amp;nbsp; If he multiply 3.4e19 time 1.8e19, I get NAN, which he did not expect. &amp;nbsp;He was expecting +INF.&amp;nbsp; If he multiply 3.4e19 time 3.4e19 &amp;nbsp;he gets -0 (0x80000000). This one is a problem.&amp;nbsp; In a control system you never want to get 0 when multiplying two large numbers together.&amp;nbsp; Do you have any idea how he can trap this overflow so he don’t get 0 for his result?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 09:14:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-Version-5-1-and-Floating-Point-Library/m-p/657475#M5816</guid>
      <dc:creator>HeMyFAE</dc:creator>
      <dc:date>2017-01-03T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior Version 5.1 and Floating Point Library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-Version-5-1-and-Floating-Point-Library/m-p/657476#M5817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hy&lt;/P&gt;&lt;P&gt;Can you please provide a demo project for this problem?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-Version-5-1-and-Floating-Point-Library/m-p/657476#M5817</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-01-06T10:14:18Z</dc:date>
    </item>
  </channel>
</rss>

