title: round off decimal using javascript
body: <p>I need to round off the decimal value to decimal places using javascript.</p>
  
  <p>Ex,: </p>
  
  <pre><code>16.181 to 16.18
  16.184 to 16.18
  16.185 to 16.19
  16.187 to 16.19
  </code></pre>
  
  <p>I have found some answers, but most of them do not round off 16.185 to 16.19..</p>