title: Having trouble outputting decimal approximations; Python 2 rounds division to 0 or 1
body: <p>So I've decided to make a hypergeometric distribution calculator (probability and statistics stuff).  The problem is that the output will always be between 0 and 1.  So Python rounds down to 0 or up to 1 depending on the output value.</p>
  
  <p>Here's my code</p>
  
  <pre><code>from combinatorics import combination
  from combinatorics import permutation
  from factorial import factorial
  from decimal import Decimal
  
  #Hypergeometric and Binomial Distributions!
  
  
  
  def hypergeometric(N, n, r, k):
      hyper = (combination(r, k) * combination(N - r, n - k))/(combination(N, n))
      return hyper
  
  pop = int(raw_input("What is the size of the population? "))
  draws = int(raw_input("How many draws were there? "))
  spop = int(raw_input("What is the smaller population? "))
  success = int(raw_input("How many successes were there? "))
  
  print Decimal(hypergeometric(pop, draws, spop, success))
  </code></pre>
  
  <p>I've tried importing the decimal module, but I'm not really sure if I'm using it correctly or if that's even what it's there for.  Any help would be awesome!</p>
  
  <p>Edit: As an example, when I set N = 15, n = 6, r = 5, and k = 3, it rounds the answer to 0.  I would like it instead to print the proper answer: .2397802398.  Thanks!</p>