The math.degrees()
function converts an angle from radians to degrees.
math.degrees(x)
copy
Where parameter x
is a numerical ( float or integer) value representing a radian angle.
The function returns the angle in degrees equivalent of the input radian angle (x
). The returned value is always in floating point format.