Value of sine 180 is coming out as 1.22465e-16

Just to be clear, your program is giving you the correct answer. That is to say, it is doing exactly what you told it to do in your code. 180*M_PI is correctly rounded (per IEEE-754), and gives the value: 565.4866776461627750904881395399570465087890625 dividing that by 180 is also correctly rounded, and gives the result: 3.141592653589793115997963468544185161590576171875 which is … Read more