title: Math.sin() Different Precision between Node.js and C#
body: <p><p>I have a problem in precision in the last digit after the comma.The javascript code generates one less Digit in compare with the C# code. </p>  </p>
  
  <p>Here is the simple Node.js code</p>   
  
  <pre><code>var seed = 45;
  var x = Math.sin(seed) * 0.5;
  console.log(x);//0.4254517622670592
  </code></pre>
  
  <p>Here is the simple C# code</p>
  
  <pre><code>public String pseudorandom()
  {
      int seed = 45;
      double num = Math.Sin(seed) * (0.5);
      return num.ToString("G15");//0.42545176226705922
  }
  </code></pre>
  
  <p>How to achieve the same precision?</p>