title: python decorator how to add parameters
body: <p>I have a python decorator, it will round the return of function 2 decimals:</p>
  <pre><code>def round_decimal(func):
      def inner(*args, **kwargs):
          return round(func(*args, **kwargs),2)
      return inner
  
  @round_decimal
  def func(a,b,c):
      
      return a/b/c
  
  func(1.33333,3.44444,4.555)
  </code></pre>
  <p>The output is:</p>
  <pre><code>0.08
  </code></pre>
  <p>My question is how can I make the round decimal a parameters:</p>
  <p>Something like this:</p>
  <pre><code>def round_decimal(func,decimal):
      def inner(*args, **kwargs):
          return round(func(*args, **kwargs),decimal)
      return inner
  
  @round_decimal(3)
  def func(a,b,c):
  
      return a/b/c
  
  func(1.33333,3.44444,4.555)
  </code></pre>
  <p>if the round decimal equals 3 the output should be:</p>
  <pre><code>0.085
  </code></pre>