<?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: Distance per Tank of Gas</title>
	<atom:link href="http://kirkhings.com/code/c/distance-per-tank-of-gas/97/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirkhings.com/code/c/distance-per-tank-of-gas/97/</link>
	<description>The '-berger' part trips up so many folks that I sometimes simplify my name for you. Yes, just for you.</description>
	<lastBuildDate>Sat, 21 Aug 2010 12:43:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kirk</title>
		<link>http://kirkhings.com/code/c/distance-per-tank-of-gas/97/comment-page-1/#comment-28</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Wed, 09 Sep 2009 02:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://kirkhings.com/?p=97#comment-28</guid>
		<description>There you go, yeah different compiler behaviors. I made this program almost two years ago so you&#039;re probably much more up to speed on the nuances between doubles and floats. 

I don&#039;t care if you or anyone copies the code word-for-word, but what&#039;s important is that you care. It&#039;s too easy to cheat and copy, but my classmates who did that didn&#039;t make it far into our program because they weren&#039;t really learning how to program. Nice to see that you recognize the difference.

I&#039;ve been meaning to get back to posting these old programs, I took the summer off. It&#039;s nice to see they are useful for other students to validate the programs they write. Glad to help!</description>
		<content:encoded><![CDATA[<p>There you go, yeah different compiler behaviors. I made this program almost two years ago so you&#8217;re probably much more up to speed on the nuances between doubles and floats. </p>
<p>I don&#8217;t care if you or anyone copies the code word-for-word, but what&#8217;s important is that you care. It&#8217;s too easy to cheat and copy, but my classmates who did that didn&#8217;t make it far into our program because they weren&#8217;t really learning how to program. Nice to see that you recognize the difference.</p>
<p>I&#8217;ve been meaning to get back to posting these old programs, I took the summer off. It&#8217;s nice to see they are useful for other students to validate the programs they write. Glad to help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon-é-mouse</title>
		<link>http://kirkhings.com/code/c/distance-per-tank-of-gas/97/comment-page-1/#comment-27</link>
		<dc:creator>Anon-é-mouse</dc:creator>
		<pubDate>Thu, 03 Sep 2009 00:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://kirkhings.com/?p=97#comment-27</guid>
		<description>I used the compiler which came with MS Visual Studio 2008 Pro.
It compiled alright with float with no problem, but double is commonly used with floating numbers as well since they both deal with decimal numbers. I asked my teacher about it, and she said that double would work good in this situation. 

Although it works right with float as well, I thank you, becasue I had a hell of a time trying to figure out what mathematical equation to use, lol.
Math isn&#039;t my strong point, so I didn&#039;t know how to word it.

Don&#039;t worry, I didn&#039;t copy the stuff word-for-word. the coding looks similar but has different variable names, comments, and the output is different as well in the wording.

It&#039;s nice to see some1 out there is using the same book as me ^.^</description>
		<content:encoded><![CDATA[<p>I used the compiler which came with MS Visual Studio 2008 Pro.<br />
It compiled alright with float with no problem, but double is commonly used with floating numbers as well since they both deal with decimal numbers. I asked my teacher about it, and she said that double would work good in this situation. </p>
<p>Although it works right with float as well, I thank you, becasue I had a hell of a time trying to figure out what mathematical equation to use, lol.<br />
Math isn&#8217;t my strong point, so I didn&#8217;t know how to word it.</p>
<p>Don&#8217;t worry, I didn&#8217;t copy the stuff word-for-word. the coding looks similar but has different variable names, comments, and the output is different as well in the wording.</p>
<p>It&#8217;s nice to see some1 out there is using the same book as me ^.^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://kirkhings.com/code/c/distance-per-tank-of-gas/97/comment-page-1/#comment-26</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Tue, 01 Sep 2009 02:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://kirkhings.com/?p=97#comment-26</guid>
		<description>No, mine compiled fine as float. I used the gcc compiler, maybe you used another compiler and it was pickier?</description>
		<content:encoded><![CDATA[<p>No, mine compiled fine as float. I used the gcc compiler, maybe you used another compiler and it was pickier?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon-é-mouse</title>
		<link>http://kirkhings.com/code/c/distance-per-tank-of-gas/97/comment-page-1/#comment-25</link>
		<dc:creator>Anon-é-mouse</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://kirkhings.com/?p=97#comment-25</guid>
		<description>Wouldn&#039;t that be &#039;double&#039; instead of &#039;float&#039;?
becasue I get a...
&quot;Warning C4305: &#039;initializing&#039; : truncation from &#039;double&#039; to &#039;float&#039;&quot;
message in the warning list.

It will compile/run with &#039;float&#039;, but that error doesn&#039;t show up when &#039;double&#039; is used.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t that be &#8216;double&#8217; instead of &#8216;float&#8217;?<br />
becasue I get a&#8230;<br />
&#8220;Warning C4305: &#8216;initializing&#8217; : truncation from &#8216;double&#8217; to &#8216;float&#8217;&#8221;<br />
message in the warning list.</p>
<p>It will compile/run with &#8216;float&#8217;, but that error doesn&#8217;t show up when &#8216;double&#8217; is used.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
