On this page
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
- Does not normalize to
[0, 360): Apply% 360if you want wrapped compass angles.
REPL Inspect
from math import degrees
help(degrees)
Linked from
Related notes
- tuts/python3/stdlib_module/math/cosh Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/dist Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/math/acos Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/acosh Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/asin Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/asinh Linked here; shared tags: #math, #stdlib
- tuts/c/stdlib/math shared tags: #math, #stdlib
- tuts/c/stdlib/math/fabs shared tags: #math, #stdlib
- tuts/c/stdlib/math/floor shared tags: #math, #stdlib