Math Functions

math.degrees()

Convert radians to degrees.

Formal Syntax & Structure

python syntaxpython
math.degrees(x, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.degrees(math.pi/2))
Python Reference