title: problems with number_format and negative numbers
body: <p>Right now I'm storing numbers as a double(11,3) in my database.  Some of the numbers can be larger negatives.  The one I'm playing with right now is -3000.000</p>
  
  <p>When I use number_format on just 3000.000 it returns 3,000
  When I use number_format on -3000.000 it returns -3</p>
  
  <p>Any ideas why this is happening and what I can do to fix it?  I'm kind of at a loss right now as to why this is happening.</p>
  
  <p>Thanks,</p>
  
  <p>Jeff</p>
  
  <p><strong>EDIT:</strong> I got it to work with the following code:</p>
  
  <pre><code>$number = abs($row['Amount']) * -1; $final = number_format($number,2);
  </code></pre>
  
  <p>Now why that would work and not:</p>
  
  <pre><code>$final = number_format($row['Amount'],2); 
  </code></pre>
  
  <p>I haven't got a clue, but at least I found a solution, thanks for the help :)</p>