title: C language how to format a double to 2 digits after the decimal point?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3383817/limit-floating-point-precision">Limit floating point precision?</a>  </p>
  </blockquote>
  
  
  
  <p>In C language, I need to format a number to 2 digits after the decimal point from user input </p>
  
  <p>For example:</p>
  
  <pre><code> float x ; 
   printf("Enter number");
  </code></pre>
  
  <p>Let's suppose the user enters <code>4.54234635</code></p>
  
  <p>I need to print and process in the whole program: 
  <code>4.54</code></p>
  
  <p>Thanks advance </p>