<?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 an int to a long and Vice Versa in Java</title>
	<atom:link href="http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html/feed" rel="self" type="application/rss+xml" />
	<link>http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:17:05 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian Nettles</title>
		<link>http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html/comment-page-1#comment-495</link>
		<dc:creator>Brian Nettles</dc:creator>
		<pubDate>Mon, 20 Sep 2010 19:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=296#comment-495</guid>
		<description>Thanks…sometimes forget these basics.</description>
		<content:encoded><![CDATA[<p>Thanks…sometimes forget these basics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Nettles</title>
		<link>http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html/comment-page-1#comment-494</link>
		<dc:creator>Brian Nettles</dc:creator>
		<pubDate>Mon, 20 Sep 2010 19:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=296#comment-494</guid>
		<description>Thanks...sometimes forget these basics.</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;sometimes forget these basics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben ahmed</title>
		<link>http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html/comment-page-1#comment-359</link>
		<dc:creator>ben ahmed</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=296#comment-359</guid>
		<description>yes but sometimes no</description>
		<content:encoded><![CDATA[<p>yes but sometimes no</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atleta</title>
		<link>http://code.hammerpig.com/convert-an-int-to-a-long-and-vice-versa-in-java.html/comment-page-1#comment-307</link>
		<dc:creator>atleta</dc:creator>
		<pubDate>Fri, 11 Dec 2009 17:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://code.hammerpig.com/?p=296#comment-307</guid>
		<description>It totally makes sense: converting to int just drops the unneeded upper bits from long. Now Long.MAX_VALUE is 01111...111 in binary representation (should be 64 bits, IIRC). I.e. the lower 32 bits are all ones, which happens to be -1 as an int. (All ones is always -1 in 2&#039;s complement.) That&#039;s it.</description>
		<content:encoded><![CDATA[<p>It totally makes sense: converting to int just drops the unneeded upper bits from long. Now Long.MAX_VALUE is 01111&#8230;111 in binary representation (should be 64 bits, IIRC). I.e. the lower 32 bits are all ones, which happens to be -1 as an int. (All ones is always -1 in 2&#8217;s complement.) That&#8217;s it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

