Parse to float with 2 decimal places
<p>I need to round a value with 2 decimal places that I receive from a web service. To do this i use this methods toFixed and parseFloat because I need the final value in a float.
However when I have this value "5.5000000" he shows me the value with only one decimal place "5.5"...</p>

<p>I did in that way:</p>

<pre><code>var num = 5.5000000;
var n = num.toFixed(2);
var numFinal = parseFloat(n);
</code></pre>