freeCodeCamp/guide/english/mathematics/degrees-to-radians/index.md

21 lines
446 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Degrees to Radians
---
## Degrees to Radians
Multiply the angle by pi/180. Remember that pi radians span half of a circle, which is 180 degrees.
Here's a python function to convert degrees to radians. Enjoy!
import math </br>
def degrees_to_radians(angle): </br>
return angle*math.pi/180;
#### More Information:
One complete cycle = 360 degrees = 2π Radians
1 degree = 2π / 360 Radians
p degree = p × 2π / 360 Radians