<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/dec</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 01:02:05 GMT</pubDate>
<item>
<title>(JavaScript) Number base conversion, hex, dec, binary - bucabay</title>
<link>http://snipplr.com/view/19224/number-base-conversion-hex-dec-binary/</link>
<description><![CDATA[ <p>The snippet uses the native Javascript function so it should be more efficient then for instance using arithmetic or looped bitwise operations etc. 

Examples:

	// convert the decimal 10 to hex 
	Math.base(10, 16); // 'a'
	
	// convert the hex 'a' to decimal 
	Math.base('a', 10, 16); // 10
	
	// convert the decimal 10 to binary
	Math.base(10, 2); // '1010'
	
	// convert the hex 'a' to decimal 
	Math.base('a', 2, 16); // 1010

[Base conversion in JavaScript][1]

[1]: http://www.bucabay.com/web-development/base-conversion-in-javascript/ "Base conversion in JavaScript"</p> ]]></description>
<pubDate>Thu, 03 Sep 2009 09:28:01 GMT</pubDate>
<guid>http://snipplr.com/view/19224/number-base-conversion-hex-dec-binary/</guid>
</item>
<item>
<title>(VB.NET) Hex to Dec (RGB) - blackf0rk</title>
<link>http://snipplr.com/view/13062/hex-to-dec-rgb/</link>
<description><![CDATA[ <p>Convert hexidecimal color codes (ie #C0C0C0) to decimal RGB (ie 255,255,255)</p> ]]></description>
<pubDate>Thu, 12 Mar 2009 17:28:59 GMT</pubDate>
<guid>http://snipplr.com/view/13062/hex-to-dec-rgb/</guid>
</item>
</channel>
</rss>