<?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: Using Python to determine if a number is whole or decimal</title>
	<atom:link href="http://threadbarecanvas.com/tutorial/using-python-will-determine-if-a-number-is-whole-or-decimal/feed/" rel="self" type="application/rss+xml" />
	<link>http://threadbarecanvas.com/tutorial/using-python-will-determine-if-a-number-is-whole-or-decimal/</link>
	<description>Online Journal of James Hogan the Web Developer</description>
	<lastBuildDate>Thu, 29 Mar 2012 17:09:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Nyan Cat</title>
		<link>http://threadbarecanvas.com/tutorial/using-python-will-determine-if-a-number-is-whole-or-decimal/comment-page-1/#comment-77</link>
		<dc:creator>Nyan Cat</dc:creator>
		<pubDate>Wed, 24 Aug 2011 01:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://threadbarecanvas.com/?p=152#comment-77</guid>
		<description>I seem to have found and easier way of doing this. Using the int(x) built in function, things can be done the same way. Here is my code:

#Python 3.x
#Get the users integer
number = (input(&quot;Enter an integer&quot;))
#int() takes away the decimal. If the decimal is taken away from a number is equal to that number, there was no decimal to start with!! Therefore it was whole. If not, then it&#039;s a decimal
if int(number) == number:
          print(&quot;whole number&quot;)
else:
          print(&quot;decimal number&quot;)</description>
		<content:encoded><![CDATA[<p>I seem to have found and easier way of doing this. Using the int(x) built in function, things can be done the same way. Here is my code:</p>
<p>#Python 3.x<br />
#Get the users integer<br />
number = (input(&#8220;Enter an integer&#8221;))<br />
#int() takes away the decimal. If the decimal is taken away from a number is equal to that number, there was no decimal to start with!! Therefore it was whole. If not, then it&#8217;s a decimal<br />
if int(number) == number:<br />
          print(&#8220;whole number&#8221;)<br />
else:<br />
          print(&#8220;decimal number&#8221;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

