title: python int( ) function
body: <p>The code below shows error if a decimal <em>(eg. 49.9)</em> is sent to <code>next</code> variable. Can you please tell me why? Why does <code>int()</code> converts it into an integer?</p>
  
  <pre><code>next=raw_input("&gt; ")
  how_much = int(next)
  if how_much &lt; 50:
      print"Nice, you're not greedy, you win"
      exit(0)
  else:
      dead("You greedy bastard!")
  </code></pre>
  
  <p>If I dont use <code>int()</code> or <code>float()</code> and just use:</p>
  
  <pre><code>how_much=next
  </code></pre>
  
  <p>then it moves to "else" even if I give the input as <code>49.8</code>.</p>