Degrees Function - Python Math Module

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

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:

Right angle in degrees: 90

Straight angle in degrees: 180


Copyright 2023 © pythontic.com