<?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: Java weirdness</title>
	<atom:link href="http://www.pitr.net/index.php/2009/01/31/java-weirdness/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pitr.net/index.php/2009/01/31/java-weirdness/</link>
	<description></description>
	<lastBuildDate>Thu, 17 Feb 2011 08:38:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: pj</title>
		<link>http://www.pitr.net/index.php/2009/01/31/java-weirdness/comment-page-1/#comment-12610</link>
		<dc:creator>pj</dc:creator>
		<pubDate>Thu, 12 Feb 2009 13:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/?p=56#comment-12610</guid>
		<description>You, sir, just won a beer! 
Let me know where you live, next time I&#039;m in canada :-)</description>
		<content:encoded><![CDATA[<p>You, sir, just won a beer!<br />
Let me know where you live, next time I&#8217;m in canada <img src='http://www.pitr.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.pitr.net/index.php/2009/01/31/java-weirdness/comment-page-1/#comment-12601</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Wed, 11 Feb 2009 17:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pitr.net/?p=56#comment-12601</guid>
		<description>Compound operators do implicit casting for you --&gt; x +=2.5 so your double is casted to int.

While arithmetical operation x+2.5 has to result to integer, so you have to explicitly cast to (int)2.5 --&gt; x= x + (int)2.5

What is says - both statements are not equivalent and can produce different results.
I agree this is a weird.</description>
		<content:encoded><![CDATA[<p>Compound operators do implicit casting for you &#8211;&gt; x +=2.5 so your double is casted to int.</p>
<p>While arithmetical operation x+2.5 has to result to integer, so you have to explicitly cast to (int)2.5 &#8211;&gt; x= x + (int)2.5</p>
<p>What is says &#8211; both statements are not equivalent and can produce different results.<br />
I agree this is a weird.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

