title: Cast int to float, two decimal values in PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4483540/php-show-a-number-to-2-decimal-places">PHP: show a number to 2 decimal places</a>  </p>
  </blockquote>
  
  
  
  <p>How do I cast an integer, let's say <code>$i=50</code> to a float with two decimal values: <code>$m=50.00</code>? I have tried <code>(float)$i</code> but nothing happens. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I need to make <code>$i == $m</code> so that returns <code>TRUE</code>;</p>