Degrees Function - Python Math Module

Method name:


Method overview:

Converts the angular value specified in radians into degrees


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

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)))


Right angle in degrees: 90

Straight angle in degrees: 180

Copyright 2023 ©