<?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>Kinetis Design StudioのトピックRe: Problem with &amp;quot;roundf&amp;quot; function in KDS</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-quot-roundf-quot-function-in-KDS/m-p/736313#M9477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="284073" data-username="sreeramadhanalakshmi" href="https://community.nxp.com/people/sreeramadhanalakshmi"&gt;Sreerama Dhanalakshmi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I test on KDSv3.2 with FRDM-K64 board, the data also 14.9900 ：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62060i02015EE93D22D098/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Wed, 20 Jun 2018 07:45:31 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2018-06-20T07:45:31Z</dc:date>
    <item>
      <title>Problem with "roundf" function in KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-quot-roundf-quot-function-in-KDS/m-p/736312#M9476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Kinetis design studio version 3.2 for our application. In this IDE we are facing a problem with "roundf" of math library function.(explained in below)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;float val = &lt;STRONG&gt;14.98967&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;float C_val = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;C_val = roundf(val*100)/100; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Round off the value with two decimal places&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the result for the above function in Code warrior&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;is&amp;nbsp;&lt;/STRONG&gt; C_Val = &lt;STRONG&gt;14.9900&lt;/STRONG&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;But in KDS : C_Val = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;14.9899998&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other method in KDS to get the value same as in Code warrior ?&lt;/P&gt;&lt;P&gt;Please suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dhanalakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 14:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-quot-roundf-quot-function-in-KDS/m-p/736312#M9476</guid>
      <dc:creator>sreeramadhanala</dc:creator>
      <dc:date>2018-05-30T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with "roundf" function in KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-quot-roundf-quot-function-in-KDS/m-p/736313#M9477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="284073" data-username="sreeramadhanalakshmi" href="https://community.nxp.com/people/sreeramadhanalakshmi"&gt;Sreerama Dhanalakshmi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I test on KDSv3.2 with FRDM-K64 board, the data also 14.9900 ：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62060i02015EE93D22D098/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Wed, 20 Jun 2018 07:45:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-quot-roundf-quot-function-in-KDS/m-p/736313#M9477</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-06-20T07:45:31Z</dc:date>
    </item>
  </channel>
</rss>

