Type Function Library math.* Return value Number Revision Release 2024.3703 Keywords deg, degree See also math.rad()
Convert a value from radians to degrees.
print(math.deg(math.pi)) ---> 180 print(math.deg(math.pi / 2)) ---> 90 print(math.rad(180)) ---> 3.1415926535898