title: javascript - how to round to nearest integer
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6968042/how-can-i-round-of-to-whole-numbers-in-javascript">How can I round of to whole numbers in JavaScript?</a>  </p>
  </blockquote>
  
  
  
  <p>In javascript is there a function which allows me to round to the nearest integer? Either up or down.</p>
  
  <p>So:</p>
  
  <p><strong>2.1 = 2<br/>
  2.9 = 3<br/>
  4.5 = 5<br/>
  1.1 = 1<br/></strong></p>