title: Mathf.Tan giving strange results
body: <p>I have one problem in finding tan angle in my Unity3d game.</p>
  
  <p>The code is as follows</p>
  
  <pre><code>b = Mathf.Deg2Rad * (90.0f - angle);
  float tan = Mathf.Tan (b);
  Debug.Log ("Value of b :  " + b + "  Tan of b  :  " + tan);
  </code></pre>
  
  <p>Here the value <strong>angle is 0.</strong>  </p>
  
  <p>The problem with me is when I calculate using calculator I will get the <strong>result of b as 1.570796327</strong> which is correct and <strong>value of tan is 0.027422438</strong> when my calculator is in degree mode and **INFINITY ** in radians mode</p>
  
  <p>The debug log results are as follows</p>
  
  <p><strong>Value of b :  1.570796  Tan of b  :  -2.287733E+07</strong>  </p>
  
  <p>What is the problem? Please excuse if I am wrong.</p>