<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: convert Decimal to Hex and back</title>
	<atom:link href="http://www.nunomira.com/blog/2009/11/convert-decimal-to-hex-and-back/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nunomira.com/blog/2009/11/convert-decimal-to-hex-and-back/</link>
	<description>Nuno Mira&#039;s Flash Blog</description>
	<lastBuildDate>Thu, 10 Jun 2010 18:56:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: ugly computer</title>
		<link>http://www.nunomira.com/blog/2009/11/convert-decimal-to-hex-and-back/comment-page-1/#comment-149402</link>
		<dc:creator>ugly computer</dc:creator>
		<pubDate>Thu, 10 Jun 2010 18:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nunomira.com/blog/?p=370#comment-149402</guid>
		<description>handy, thanks!</description>
		<content:encoded><![CDATA[<p>handy, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: helloworlder</title>
		<link>http://www.nunomira.com/blog/2009/11/convert-decimal-to-hex-and-back/comment-page-1/#comment-149398</link>
		<dc:creator>helloworlder</dc:creator>
		<pubDate>Thu, 11 Feb 2010 07:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.nunomira.com/blog/?p=370#comment-149398</guid>
		<description>Thanks! I was looking for a simpler way to do this. 

However if you want the typical representation where leading 0s are not dropped, then I&#039;ve modified the script to do so. E.g. you want it to be represented as 0x00AA00 and not 0xAA00.

var c:uint = 0x00AA00;

trace (c);
var s:String = c.toString(16).toUpperCase();

while(s.length &lt; 6)
{
    s = &quot;0&quot; + s;
}
	  
s = &quot;0x&quot; + s;
	  	  	  
trace (s);

trace (uint(s));</description>
		<content:encoded><![CDATA[<p>Thanks! I was looking for a simpler way to do this. </p>
<p>However if you want the typical representation where leading 0s are not dropped, then I&#8217;ve modified the script to do so. E.g. you want it to be represented as 0x00AA00 and not 0xAA00.</p>
<p>var c:uint = 0x00AA00;</p>
<p>trace (c);<br />
var s:String = c.toString(16).toUpperCase();</p>
<p>while(s.length &lt; 6)<br />
{<br />
    s = &quot;0&quot; + s;<br />
}</p>
<p>s = &quot;0x&quot; + s;</p>
<p>trace (s);</p>
<p>trace (uint(s));</p>
]]></content:encoded>
	</item>
</channel>
</rss>
