title: round value to 2 decimals javascript
body: <p>I have a small issue with the final value, i need to round to 2 decimals.</p>
  
  <pre><code>var pri='#price'+$(this).attr('id').substr(len-2);
              $.get("sale/price?output=json", { code: v },
                 function(data){
                   $(pri).val(Math.round((data / 1.19),2));
              });
          });
  </code></pre>
  
  <p>Any help is appreciated.</p>
  
  <p>Solution: <code>$(pri).val(Math.round((data / 1.19 * 100 )) / 100);</code></p>