title: Why do we use radians in programming?
body: <p>I like radians just as much as the next guy, and typically prefer to use them over degrees, but why do we use radians in programming?</p>
  
  <p>To rotate something 180 degrees, you need to rotate it by <code>3.14159265...</code>. Sure, most languages have some kind of constant for pi, but why do we ever want to use irrational numbers like pi when we can instead use integers, especially for simple programs?</p>
  
  <p>We're relying on the computer to say that <code>3.14159265</code> is close enough to pi that functions like sine and cosine return the proper values, but if a computer is too accurate, then the values would be slightly off (<code>sin(3.14159265) = 0.00000000358979303</code>). This isn't an issue when using 180 degrees.</p>