How can i parseFloat a php var inside javascript
<p>I need to parseFloat this then to replace the dot with a comma:</p>

<pre><code>sum="&lt;?php echo substr($_tarif_membre,0,-2).'.'.substr($_tarif_membre,-2,2) ?&gt;" *  $('#tarif_membre').val()
total_total= sum.replace('.',',')
$('#total_total').val(sum)
</code></pre>

<p>if i dont multiply the php echoed variable by <code>$('#tarif_membre').val()</code>  it will still show the result as a float:12.00 (as it is echoed from php)  but if i multiply by  <code>$('#tarif_membre').val()</code>  the result will show 12, why? and why does the replace method does not work(i need to show comma separated values)</p>
