title: Floating point number format
body: <p>I want to use <code>number_format</code> function in PHP. For example:</p>
  
  <pre><code>$number = 234.51;
  echo number_format($number,2);
  </code></pre>
  
  <p>This works for float numbers but I want to use it for different numbers. If a number is decimal and doesn't have any floating points, it shows like : 145.00 . How can I fix this? I mean I want to show as many floating points as needed, not more.</p>