340 B
340 B
title, tags
| title | tags |
|---|---|
| rads_to_degrees | math,beginner |
Converts an angle from radians to degrees.
- Use
math.piand the radian to degree formula to convert the angle from radians to degrees.
from math import pi
def rads_to_degrees(rad):
return (rad * 180.0) / pi
from math import pi
rads_to_degrees(pi / 2) # 90.0