title: Two Decimal Places without Rounding (Positive and Negative)
body: <p>I can't believe this has actually come to me asking a question. But I have some decimal values in my database ie <code>0.9999999</code>, using:</p>
  
  <pre><code>number_format($result['debit'], 2);
  
  number_format($result['debit'], 2,".","");
  
  number_format(floor($result['debit']*pow(10,2))/pow(10,2),2); 
  </code></pre>
  
  <p>I am continually getting the value <code>1</code> back from my original <code>0.999999</code>.</p>
  
  <p>It doesn't seem to matter what I try, it constantly rounds the number. What can I do to simply get <code>0.99</code>? I am at the point where I am going to explode (currently I mean the function)</p>
  
  <p>Another note is this will need to work with negative numbers.</p>