Limit the number of decimals writen (js)
<p>I got a minor brain-teaser thats keep bothering me. 
I'm unable to control the numbers of decimals written by my scripts. </p>

<p>HTML</p>

<pre><code>    &lt;script type="text/JavaScript"&gt;
    &lt;!--
    document.write($tekn_2_2/$tekn_2_1)
    //--&gt;
    &lt;/script&gt;
</code></pre>

<p>JS</p>

<pre><code>$tekn_2_1 = "28"
$tekn_2_2 = "7600"
</code></pre>

<p>I want this to return the value '271' instead of '271.42857142857144'.
I apologize, I'm aware that this should be a small case, but I can get anything to work.</p>
