math.rad()

Type Function
Library math.*
Return value Number
Revision Release 2022.3683
Keywords rad, radian
See also math.deg()

Overview

Converts to radians an angle given in degrees.

Syntax

math.rad( x )
x (required)

Number. An angle in degrees.

Examples

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