title: Round number to nearest .5 decimal
body: <p>I'm looking for an output of</p>
  
  <p><strong>4.658227848101266 = 4.5</strong></p>
  
  <p><strong>4.052117263843648 = 4.0</strong></p>
  
  <p>the closest I've gotten is </p>
  
  <pre><code>rating = (Math.round(rating * 4) / 4).toFixed(1)
  </code></pre>
  
  <p>but with this the number 4.658227848101266 = 4.8???</p>