math.todegrees

Converts an angle in radians to the same angle in degrees.

math.todegrees(const float radians) → const float
math.todegrees(input float radians) → input float
math.todegrees(series float radians) → series float
math.todegrees(simple float radians) → simple float
ParameterTypeRequiredDescription
radiansconst floatyesThe angle, in radians.

Returns const float or input float or series float or simple float — The angle in degrees, as a float in the argument’s form.

indicator("Radians to degrees")
plot(math.todegrees(math.pi))

See also math.abs · math.acos · math.asin

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade