<?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: Horrible Java</title>
	<atom:link href="http://davec.org/2009/05/horrible-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://davec.org/2009/05/horrible-java/</link>
	<description></description>
	<lastBuildDate>Mon, 19 Mar 2012 16:57:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: dave</title>
		<link>http://davec.org/2009/05/horrible-java/comment-page-1/#comment-1970</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Fri, 15 May 2009 10:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://davec.org/?p=631#comment-1970</guid>
		<description>Doubles can represent integers. In fact, half of all the possible values of a double are integer values. The problem is that, beyond a certain magnitude, a double will not have enough precision to distinguish even from odd.

The &lt;em&gt;real&lt;/em&gt; problem is that no data type, including the &quot;arbitrary precision&quot; ones, can possibly represent all integers up to infinity. Consider &lt;a href=&quot;http://mathworld.wolfram.com/GrahamsNumber.html&quot; rel=&quot;nofollow&quot;&gt;Graham&#039;s Number&lt;/a&gt; for a start.

The starting point for understanding how this code works is in recognising that it is patently impossible. :P</description>
		<content:encoded><![CDATA[<p>Doubles can represent integers. In fact, half of all the possible values of a double are integer values. The problem is that, beyond a certain magnitude, a double will not have enough precision to distinguish even from odd.</p>
<p>The <em>real</em> problem is that no data type, including the &#8220;arbitrary precision&#8221; ones, can possibly represent all integers up to infinity. Consider <a href="http://mathworld.wolfram.com/GrahamsNumber.html" rel="nofollow">Graham&#8217;s Number</a> for a start.</p>
<p>The starting point for understanding how this code works is in recognising that it is patently impossible. <img src='http://davec.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://davec.org/2009/05/horrible-java/comment-page-1/#comment-1967</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Fri, 15 May 2009 01:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://davec.org/?p=631#comment-1967</guid>
		<description>While I have no idea what Java is doing to deal with a concept of infinity, I have a problem with the code before it gets as far as using whatever infinity it has...  The parity of a number is only defined for integers, so declaring i to be a double is not technically correct, and we all know technically correct is the best type of correct :-).</description>
		<content:encoded><![CDATA[<p>While I have no idea what Java is doing to deal with a concept of infinity, I have a problem with the code before it gets as far as using whatever infinity it has&#8230;  The parity of a number is only defined for integers, so declaring i to be a double is not technically correct, and we all know technically correct is the best type of correct <img src='http://davec.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
</channel>
</rss>

