title: Is Math.Sin giving me the wrong answer?
body: <p>I am trying to calculate sin(pi radians) using Math.Sin(). I am using the following code.</p>
  
  <pre><code>        double degrees = 180;
          double radians = Math.PI / 180 * degrees;
          Console.WriteLine(Math.Sin(radians));
  </code></pre>
  
  <p>It is giving me a value of</p>
  
  <blockquote>
    <p>1.22460635382238E-16</p>
  </blockquote>
  
  <p>What is the reason for this? Surely it should be returning a value of 0 right?</p>
  
  <p>Please enlighten me. Thanks.</p>