How to round float numers?
<p>I need to round for example <code>6.688689</code> to <code>6.7</code>, but it always shows me <code>7</code>.</p>

<p>My method:</p>

<pre><code>Math.round(6.688689);
//or
Math.round(6.688689, 1);
//or 
Math.round(6.688689, 2);
</code></pre>

<p>But result always is the same <code>7</code>... What am I doing wrong?</p>
