math.rad()

Type Function
Library math.*
Return value Number
Revision Current Public Release (2017.3068)
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