math.rad()

类型 函数
math.*
返回值 数字
版本 发行版 2024.3703
关键字 rad、弧度
另见 math.deg()

概述

将以度为单位给出的角度转换为弧度。

语法

math.rad( x )
x (必填)

数字. 以度为单位的角度。

示例

print(math.rad(180))  ---->  3.1415926535898
print(math.rad(1))    ---->  0.017453292519943