math.radians

Full name
math.radians
Library
math
Syntax

math.radians(angle)

Description

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

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

The math.radians function returns a real number.

Examples

Here are several angles converted from sexagesimal degrees to radians:

print(math.radians(-90))

-1.5707963267948966

print(math.radians(0))

0.0

print(math.radians(90))

1.5707963267948966

print(math.radians(180))

3.141592653589793
Submitted by admin on Sun, 01/20/2019 - 22:51