title: Javascript Math.cos and Math.sin are inaccurate. Is there any solution?
body: <p>Javascript Math trigonomerial methos return wrong results. 
  Try </p>
  
  <pre><code>alert(Math.sin(Math.PI));
  </code></pre>
  
  <p>it doesn't return 0. </p>
  
  <p>Maybe problem is with javascript decimal number precision. Is there any workoround to get correct results?</p>