title: Converting from Radians to Degrees
body: <p>I'm building a small Physics engine and I'm having trouble converting my Radian value to Degrees using <code>atan</code>, as I need an angle to output in Degrees only.</p>
  
  <p>Firstly, I have an <code>x</code> and <code>y</code> value, and I need to find an angle using <code>atan</code>, so I divide y by x like so:</p>
  
  <pre><code>angleDivide = yN / xN;
  </code></pre>
  
  <p>Then, before putting this value into <code>tan</code>, I attempt to convert it to Degrees like this: </p>
  
  <pre><code>angleToDegrees = angleDivide * (3.14 / 180);
  </code></pre>
  
  <p>Then I place angleToDegrees into <code>atan</code>:</p>
  
  <pre><code>angle = atan(angleToDegrees);
  </code></pre>
  
  <p>But when I'm displaying <code>angle</code>, I'm, still getting radian values.</p>
  
  <p>Please could you tell me what is wrong with my code and how to fix this?</p>