title: Round in C with N digits after decimal point
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1343890/rounding-number-to-2-decimal-places-in-c">Rounding Number to 2 Decimal Places in C</a>  </p>
  </blockquote>
  
  
  
  <p>I have not found a function with a signature <code>double round(double d, int digits)</code> like <a href="http://msdn.microsoft.com/en-us/library/75ks3aby.aspx" rel="nofollow noreferrer">here</a> in c.
  When i try to build i get a error:</p>
  
  <blockquote>
    <p>error: too many arguments to function 'round'</p>
  </blockquote>
  
  <p>How can I round in C with N digits after the decimal point?</p>