<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Anselm Bradford &#187; Math</title>
	<atom:link href="http://blog.anselmbradford.com/category/programming/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anselmbradford.com</link>
	<description>wrangling the Internet's wildest</description>
	<lastBuildDate>Mon, 27 Jun 2011 19:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Formatting decimal as binary</title>
		<link>http://blog.anselmbradford.com/2008/05/01/formatting-decimal-as-binary/</link>
		<comments>http://blog.anselmbradford.com/2008/05/01/formatting-decimal-as-binary/#comments</comments>
		<pubDate>Thu, 01 May 2008 23:39:12 +0000</pubDate>
		<dc:creator>Ans</dc:creator>
				<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=4</guid>
		<description><![CDATA[While most of the time you will see numbers in the decimal number system (using the digits 0 through 9), internally within your computer these numbers will be represented in binary. In the binary numeral system each number can only be composed of a sequence of two values: 0 or 1, ON or OFF, TRUE or [...]]]></description>
			<content:encoded><![CDATA[<p>While most of the time you will see numbers in the decimal number system (using the digits 0 through 9), internally within your computer these numbers will be represented in binary. In the binary numeral system each number can only be composed of a sequence of two values: 0 or 1, ON or OFF, TRUE or FALSE, and so on.</p>
<p>Binary numbers are sequences of 1&#8242;s and 0&#8242;s, moving from right to left, each occurrence of a 1 is equivalent to twice the decimal value of the previous digit&#8217;s decimal value. Take for example the binary number 11111111. The first digit has the decimal value of 1, the second has the decimal value of 2, the third has the decimal value of 4, and so on. Adding all these values together equals the final decimal value, which in this case is 255.</p>
<p><img class="aligncenter size-full wp-image-6" title="binary11111111" src="http://blog.anselmbradford.com/wp-content/uploads/2008/05/binary11111111-300x276.png" alt="" width="300" height="276" /></p>
<p>Each digit in a binary number is called a bit, in this case all bits are 1. If some of the bits were 0, they would not add to the resulting decimal number, but they would still represent a place within the sequence.</p>
<p><img class="aligncenter size-medium wp-image-7" title="binary01010010" src="http://blog.anselmbradford.com/wp-content/uploads/2008/05/binary01010010-300x276.png" alt="" width="300" height="276" /></p>
<p>To play around with converting numbers from one base to another, try my <a href="/?p=3">Base Converter widget</a>.</p>
<p>Treating decimal numbers as binary numbers is useful when dealing with bitwise programming, where individual bits within a binary number can be switched to their reverse value (either 1 or 0). This allows for extremely efficient division by 2 arithmetic and for a technique of representing binary numbers as an efficient storage mechanism for a bunch of boolean values.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anselmbradford.com/2008/05/01/formatting-decimal-as-binary/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Number Base System Converter</title>
		<link>http://blog.anselmbradford.com/2008/05/01/number-base-system-converter/</link>
		<comments>http://blog.anselmbradford.com/2008/05/01/number-base-system-converter/#comments</comments>
		<pubDate>Thu, 01 May 2008 07:58:28 +0000</pubDate>
		<dc:creator>Ans</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=3</guid>
		<description><![CDATA[Sometimes it is handy to be able to convert a number from one base to another, especially when working with bitwise operations. To help you in that endeavor I present the Base Converter:  ]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is handy to be able to convert a number from one base to another, especially when working with bitwise operations. To help you in that endeavor I present the Base Converter:</p>
<p><span style="color: #551a8b; text-decoration: underline;">
<object width="228" height="280">
<param name="movie" value="/wp-content/uploads/2008/05/converter.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" width="228" height="280" src="/wp-content/uploads/2008/05/converter.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
<br />
</span></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.anselmbradford.com/2008/05/01/number-base-system-converter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

