math.rad¶ math.rad(x) -> number Convert x from degrees to radians. Equivalent to x * π / 180. Parameters x: any — angle in degrees Returns number — the angle in radians, as a float Examples assert(math.rad(180) == math.pi) assert(math.rad(0) == 0.0)