title: how can round the number in specific format?
body: <p>I want to round the number in specific format in jquery</p>
  
  <p>For ex.</p>
  
  <pre><code>var First = 3.52
  </code></pre>
  
  <p>if last value after decimal point <code>2</code> is less then 3 then it should be round to 0</p>
  
  <p>if last value after decimal point <code>2</code> is beetween then 3 to 7 then it should be round to 5</p>
  
  <p>if last value after decimal point <code>2</code> is more then 7 then it should be round to 10</p>
  
  <p>Like </p>
  
  <pre><code>if(var First = 1.21) { var Answer = 1.20 }
  if(var First = 1.24) { var Answer = 1.25 }
  if(var First = 1.28) { var Answer = 1.30 }
  </code></pre>
  
  <p>i have tried Round and Ceil , Floor but doesnt work for me</p>