How to write parsefloat function in if-else statement without using JavaScript?
<p>I have an <code>if-else</code> statement; I need to write a "parsefloat" function in order to get the number after decimal place. How can I write it? If I am not using this function it only takes the values before decimal place.</p>

<p>For example, <code>3.2+89.34+89.9=181</code> this result I need to display in this form: <code>3.2+89.34+89.9=182.44</code>.</p>

<p>Code:</p>

<pre><code>&lt;?php
    if($fa1&lt;=$rc &amp;&amp; $fb1&lt;=$rc1 &amp;&amp; $fcc1&lt;=$rc2 )
    {

     $gk[]=round(((($fa1[$i]*$fb1[$i]*$fcc1[$i])*30)/1000),2);
     echo  "&lt;td&gt;" . $gk[$i]. "&lt;/td&gt;";
     }
    else
    {
    $gk1[]=round(((($rc[$i]*$rc1[$i]*$rc2[$i])*30)/1000),2);
     echo  "&lt;td&gt;" . $gk1[$i]. "&lt;/td&gt;";
    }
?&gt;
</code></pre>

<p>In arrays I get the values.</p>
