title: Why do I get an error when I call int(input()) where input is decimal (eg. '87.94')?
body: <p>I'm a programming newbie having difficulty with Python multiplication. I have code like this:</p>
  
  <pre><code>def getPriceDiscount():
      price = int(input())
      if price &gt; 3000:
          priceDiscount = price * 0.6
          return priceDiscount
      else:
          return price
  </code></pre>
  
  <p>But when I execute it and type an input which is a decimal number like 87.94, I get the following error:</p>
  
  <pre><code>ValueError: invalid literal for int() with base 10: '87.94'
  </code></pre>
  
  <p>Isn't the <code>int()</code> method able to convert the string '87.94' into a number allowing me to multiply it by 0.6? What should I do to perform that conversion?</p>
  
  <p>I'm using Python 3.2.2.</p>