Advertisement

sinf() grossly inaccurate?!

Started by January 03, 2003 11:34 PM
1 comment, last by Igilima 22 years, 1 month ago
Hi. I was just trying to put together some camera rotation code and was using sinf() for some calculations. After getting some strange results, I stepped through the code and checked the value being returned by sinf() for 45 degrees. It is giving me 0.850904 for 45 degrees!? It''s supposed to be .7071 isn''t it? I''m guessing this is a bug, and it may even be a known bug but wow!
Trigonometric functions in C/C++ take radians.
Advertisement
Ah?! Well, that would explain it then, thanks. And, ugh.

This topic is closed to new replies.

Advertisement