Skip to content

Home

Radians to degrees

Converts an angle from radians to degrees.

from math import pi

def rads_to_degrees(rad):
  return (rad * 180.0) / pi

rads_to_degrees(pi / 2) # 90.0

More like this

Start typing a keyphrase to see matching snippets.