title: Using round function still price 34.50 round to 34 in Odoo10
body: <p>I'm using round value for floated price but still my price 34.50 is rounded to 34. It should be 35 when it reached to 34.50. Mainly its work fine but i don't understand why it is not working on 3000 price percentage discount is 1.15</p>
  
  <p>I am also attaching screen and code also.</p>
  
  <pre><code>@api.one
  @api.depends('discount_type','discount_rate','amount_total')
  def _compute_discount(self):
  
      mod_obj = self.env['ir.model.data']
      amount_discount = 0.0
      if self.discount_type == 'percent':
          amount_discount = self.amount_untaxed * self.discount_rate / 100
      else:
          amount_discount = self.discount_rate
  
      self.amount_discount = round(amount_discount)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fFJ5q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fFJ5q.jpg" alt="enter image description here"></a></p>
  
  <p>Thanks in advance</p>