파이썬 math.degrees() 메서드
예시
각도를 라디안에서 각도로 변환:
# Import math Library
import math
# Convert from radians to
degrees:
print (math.degrees(8.90))
print (math.degrees(-20))
print
(math.degrees(1))
print (math.degrees(90))
정의 및 사용
이 mmath.degrees()
방법은 각도를 라디안에서 각도로 변환합니다.
팁: PI(3.14..) 라디안은 180도와 같습니다. 즉, 1라디안은 57.2957795도와 같습니다.
팁:math.radians()
도 값을 라디안으로 변환하려면 참조하십시오 .
통사론
math.degrees(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A radian value to convert into degrees. If the parameter is not a number, it returns a TypeError |
기술적 세부 사항
반환 값: | float 값을 도 단위로 나타내는 값 |
---|---|
파이썬 버전: | 2.3 |