integer rounding with parseInt in javascript
<p>I have the following javascript code. </p>

<pre><code>if( frequencyValue &lt;= 30)
            leftVal = 1;
        else if (frequencyValue &gt; 270)
            leftVal= 10;
        else 
            leftVal = parseInt(frequencyValue/30);
</code></pre>

<p>Currently if given the value 55 (for example) it will return 1 since 1&lt; 55/30 &lt; 2. I was wondering if there was a way to round up to 2 if the decimal place being dropped was greater than .5. </p>

<p>thanks in advance</p>
