<?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: Challenge #1: How Small Things Have Big Impact</title>
	<atom:link href="http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/</link>
	<description>I bake games. Indie style.</description>
	<lastBuildDate>Thu, 16 May 2013 13:23:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Damion</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-665</link>
		<dc:creator>Damion</dc:creator>
		<pubDate>Thu, 30 Mar 2006 06:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-665</guid>
		<description>Not quite the same, but they once had a bug on Ultima Online where the programmers accidentally redefined TRUE = 0.  You wouldn&#039;t believe the stuff that breaks.</description>
		<content:encoded><![CDATA[<p>Not quite the same, but they once had a bug on Ultima Online where the programmers accidentally redefined TRUE = 0.  You wouldn&#8217;t believe the stuff that breaks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-647</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 27 Mar 2006 19:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-647</guid>
		<description>I realize I&#039;m late for not reading feeds over the weekend, but...

When i first saw this (though now i see above that it was a printing error more than a comparison error) I immediately thought of having it pounded into me from a young age never to compare foating point numbers directly in C.. so I&#039;d always do:

#define EPSILON 0.0000001 // adjust for accuracy

if( fabs( a - b ) </description>
		<content:encoded><![CDATA[<p>I realize I&#8217;m late for not reading feeds over the weekend, but&#8230;</p>
<p>When i first saw this (though now i see above that it was a printing error more than a comparison error) I immediately thought of having it pounded into me from a young age never to compare foating point numbers directly in C.. so I&#8217;d always do:</p>
<p>#define EPSILON 0.0000001 // adjust for accuracy</p>
<p>if( fabs( a &#8211; b )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captain P</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-646</link>
		<dc:creator>Captain P</dc:creator>
		<pubDate>Sun, 26 Mar 2006 20:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-646</guid>
		<description>As we always say: 1 + 1 = 3 for large values of 1. :)

I went for the string/float solution. I&#039;d reason that 70.492 would be printed as such. But not in php I understand? Odd...</description>
		<content:encoded><![CDATA[<p>As we always say: 1 + 1 = 3 for large values of 1. :)</p>
<p>I went for the string/float solution. I&#8217;d reason that 70.492 would be printed as such. But not in php I understand? Odd&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Fisher</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-642</link>
		<dc:creator>Tim Fisher</dc:creator>
		<pubDate>Sun, 26 Mar 2006 10:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-642</guid>
		<description>It was actually just a debug issue, the debugger was always rounding up! The data types were both doubles.</description>
		<content:encoded><![CDATA[<p>It was actually just a debug issue, the debugger was always rounding up! The data types were both doubles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-639</link>
		<dc:creator>Duncan</dc:creator>
		<pubDate>Sun, 26 Mar 2006 04:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-639</guid>
		<description>I&#039;ve noticed that even with identical types, sometimes the process of getting to the desired values can result in a minor discrepancy.  For example (in C/C++) if both values were floats, but the incremental process to get the values is different, the data in memory can still be different.  One can be 70.49 and the other might wind up 70.899999999999.  I was always taught that when using floating point variables in comparisons to avoid direct equates at all cost.  Always make it a range, or a = comparison.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that even with identical types, sometimes the process of getting to the desired values can result in a minor discrepancy.  For example (in C/C++) if both values were floats, but the incremental process to get the values is different, the data in memory can still be different.  One can be 70.49 and the other might wind up 70.899999999999.  I was always taught that when using floating point variables in comparisons to avoid direct equates at all cost.  Always make it a range, or a = comparison.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John H Scott</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-633</link>
		<dc:creator>John H Scott</dc:creator>
		<pubDate>Sat, 25 Mar 2006 21:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-633</guid>
		<description>Using the &quot;==&quot; operator does not always compare the value of two objects, but whether or not the two objects are the same peice of data. This could very well be the case in the example given.</description>
		<content:encoded><![CDATA[<p>Using the &#8220;==&#8221; operator does not always compare the value of two objects, but whether or not the two objects are the same peice of data. This could very well be the case in the example given.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexei A. Korolev</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-631</link>
		<dc:creator>Alexei A. Korolev</dc:creator>
		<pubDate>Sat, 25 Mar 2006 18:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-631</guid>
		<description>I got similar error when did BSP subdivision :)</description>
		<content:encoded><![CDATA[<p>I got similar error when did BSP subdivision :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas White</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-630</link>
		<dc:creator>Thomas White</dc:creator>
		<pubDate>Sat, 25 Mar 2006 15:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-630</guid>
		<description>I&#039;ve had this problem once before, but luckily Visual Studio has an ASP.NET debugger ;)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve had this problem once before, but luckily Visual Studio has an ASP.NET debugger ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Fisher</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-629</link>
		<dc:creator>Tim Fisher</dc:creator>
		<pubDate>Sat, 25 Mar 2006 10:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-629</guid>
		<description>I know I&#039;m not allowed BUT, it was PHP. When you debug it seems to round everything to 2 decimal places!!!</description>
		<content:encoded><![CDATA[<p>I know I&#8217;m not allowed BUT, it was PHP. When you debug it seems to round everything to 2 decimal places!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juuso - Game Producer</title>
		<link>http://www.gameproducer.net/2006/03/25/challenge-1-how-small-things-have-big-impact/comment-page-1/#comment-628</link>
		<dc:creator>Juuso - Game Producer</dc:creator>
		<pubDate>Sat, 25 Mar 2006 08:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gameproducer.net/2006/03/24/challenge-1-how-small-things-have-big-impact/#comment-628</guid>
		<description>@KGodwin: no no no, I won&#039;t. You gotta think harder ;)
(or read the solution from other posts ;)

@Ben: yeh, I noticed your post after sending mine :)</description>
		<content:encoded><![CDATA[<p>@KGodwin: no no no, I won&#8217;t. You gotta think harder ;)<br />
(or read the solution from other posts ;)</p>
<p>@Ben: yeh, I noticed your post after sending mine :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
