math.degrees

Full name
math.degrees
Library
math
Syntax

math.degrees(x)

Description

The math.degrees function returns the sexagesimal degrees equivalent of the angle x specified in radians.

Parameters
  • x: Angle in radians to convert to sexagesimal degrees.
Result

The math.degrees function returns a real number.

Examples

Here are several angles from radians to sexagesimal degrees:

print(math.degrees(-1.5707963267948966))

-90.0

print(math.degrees (0))

0.0

print(math.degrees(1.5707963267948966))

90.0

print(math.degrees(math.pi))

180.0

Submitted by admin on Tue, 01/19/2021 - 11:00