title: How can i make the php cos function return the correct value?
body: <p>I've tried</p>
  
  <pre><code>$x = cos(deg2rad($angle));
  </code></pre>
  
  <p>but it returns 6.12323399574E-17 when the angle is 90 degrees instead of 0.
  I read that this is a floating point problem, but is there a workaround?</p>