Saturday 21 September 2019

c# - Why am I getting wrong result Math.Cos?

Why when I tried to take a cos of 90 degrees I get some weird value other than zero? Math.Cos(90 * Math.PI / 180)



PS: I'm aware that Math.Cos function take radians instead of an angle.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...