title: How to round a float to the nearest quarter
body: <p>Sometimes I need to round a float to the nearest quarter and sometimes to the nearest half.  </p>
  
  <p>For the half I use </p>
  
  <pre><code>Math.round(myFloat*2)/2f 
  </code></pre>
  
  <p>I can use </p>
  
  <p><code>Math.round(myFloat*4)/4f</code>. </p>
  
  <p>but is there any other suggestions?    </p>