On this page
  1. math.degrees
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

math.degrees

Prev: math.cosh | Up: math | Next: math.dist
Rel: math.acos, math.acosh, math.asin, math.asinh
Ref: docs.python.org — math.degrees
Tags: #public #python3 #stdlib #math


Import

import math
from math import degrees

Signature & Overview

math.degrees(x, /)

Convert angle x from radians to degrees.

Usage

import math

assert math.isclose(math.degrees(math.pi), 180.0)
assert math.isclose(math.degrees(math.pi / 2), 90.0)

Gotchas

REPL Inspect

from math import degrees
help(degrees)

Linked from

Related notes