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