title: sinf() and cosf() in iOS app
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8663965/why-doesnt-sin-return-the-correct-value-here">Why doesn&#39;t sin() return the correct value here?</a>  </p>
  </blockquote>
  
  
  
  <p>I am building an app which will perform math operations like sine (<code>sinf()</code>) and cosine (<code>cost()</code>) on <code>floats</code>. Now when I tried calculating the sinus on 90 (which is 1), I got a result of 0.89... which is trebly wrong. Is there a reason why the result is so off? is there a way to improve it? I have tried using <code>double</code> instead of <code>float</code> and got the same answer... Is it possible it's only like than when I run it in the simulator, and will work fine on a real iPhone?
  And lastly, will using a math parser like <code>GCMathParser</code> or  <code>DDMathParser</code> improve there accuracy of the results?</p>
  
  <p>Thanks, :]</p>