title: Javascript roundoff number to nearest 0.5
body: <p><br>
  Can someone give me an idea how can i round off a number to the nearest 0.5.<br>
  I have to scale elements in a web page according to screen resolution and for that i can only assign font size in pts to 1, 1.5 or 2 and onwards etc.  </p>
  
  <p>If i round off it rounds either to 1 decimal place or none. 
  How can i accomplish this job?</p>