title: Python decimal precision and rounding
body: <p>I want to limit the precision of my float and use it as an exact value for next operations, but I'm doing something wrong with decimal module.</p>
  
  <pre><code>from decimal import *
  
  factor = 350/float(255)
  
  # Settings
  getcontext().prec = 1
  getcontext().rounding = ROUND_UP
  
  print Decimal(factor)
  </code></pre>
  
  <p>Python output:
  1.372549019607843145962533526471816003322601318359375</p>
  
  <p>Expected and wanted result: 1.4</p>