Calculation giving wrong result while i format the values with number_format in php
<pre><code> $MarketValue  = number_format(100000 * 4, 2, '.',',');
 $purchasing_val =number_format(100000 * 6, 2, '.',',');
 $pls   = $purchasing_val - $MarketValue  ;
</code></pre>

<p>The Above Code result should be 200000 but its just showing 200, its only occur when i format the values, Where's the error ? Thanks in advance.</p>