math.todegrees
Converts an angle in radians to the same angle in degrees.
math.todegrees(const float radians) → const floatmath.todegrees(input float radians) → input floatmath.todegrees(series float radians) → series floatmath.todegrees(simple float radians) → simple float| Parameter | Type | Required | Description |
|---|---|---|---|
radians | const float | yes | The 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.