title: number_format() causes error "A non well formed numeric value encountered"
body: <p>I am using number_format to round floats to only 2 decimal digits. The problem is that some of my inputs don't have more than 2 decimals digits to begin with. So the code:</p>
  
  <pre><code>number_format($value, 2)
  </code></pre>
  
  <p>Instead of peacefully adding 0 in case it doesn't have enough decimal digits, it raises errors inside Apache log and that's not desirable.</p>
  
  <p>So <code>number_format(2.1, 2)</code> or <code>number_format(0, 2)</code> will raise error in Apache log.</p>
  
  <blockquote>
    <p>[Thu Jun 30 17:18:04 2011] [error] [client 127.0.0.1] PHP Notice:  A non well formed numeric value encountered in /home/tahoang/Desktop/Projects/weatherData/weatherData.php on line 41</p>
  </blockquote>
  
  <p>How to fix this?</p>