degrees function - python math module

The degrees function in python math module converts the given angular value of radians into degrees

Math Updated 25 Sep 2016 1 min read

Method name

degrees(aRadians_in)

Method overview

Converts the angular value specified in radians into degrees

Parameters

aRadians_in : The angular value in radians which is to be converted into degrees

Return value

Angular value in degrees that corresponds to specified radians

python
import math

RightAngle      = math.degrees(1.5708)

StraightAngle  = math.degrees(3.14159)

print("Right angle in degrees: {}".format(round(RightAngle)))

print("Straight angle in degrees: {}".format(round(StraightAngle)))

Output

Output
Right angle in degrees: 90

Straight angle in degrees: 180