<?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: safe conversions? in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/safe-conversions/m-p/132789#M1152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm not clear on this request. If you're using a development tool set that has high-level language support such as C, then you'd just use its math libraries to handle the data conversions. Anything else is definitely reinventing the wheel. Or are you looking for assembly code?&lt;BR /&gt;&lt;BR /&gt;What sort of hardware target and tools are you using?&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2006 20:23:36 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2006-04-19T20:23:36Z</dc:date>
    <item>
      <title>safe conversions?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/safe-conversions/m-p/132788#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for some code samples before trying to reinvent the wheel. I need to convert from several numeric types to other numeric types. I mean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from char to int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from int to char&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from unsigned int to int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from int to unsigned int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from float to int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from int to float.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..and more of these kind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to check that no overflows underflows happen, using asserts. So I am looking for some code sample that can do what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also looking for a string to numeric(int, char, float) and numeric to string converter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate any info,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot and best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;otomi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 03:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/safe-conversions/m-p/132788#M1151</guid>
      <dc:creator>javi</dc:creator>
      <dc:date>2006-04-19T03:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: safe conversions?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/safe-conversions/m-p/132789#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm not clear on this request. If you're using a development tool set that has high-level language support such as C, then you'd just use its math libraries to handle the data conversions. Anything else is definitely reinventing the wheel. Or are you looking for assembly code?&lt;BR /&gt;&lt;BR /&gt;What sort of hardware target and tools are you using?&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 20:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/safe-conversions/m-p/132789#M1152</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-04-19T20:23:36Z</dc:date>
    </item>
  </channel>
</rss>

