deg
Syntax Format
deg(x)
Overview
The deg
function converts the given x value in radians to degrees. The function is helpful in the scripts, where you use trigonometrical functions, which return data in radians, but you need the value to be in degrees.
Parameters
Parameter | Type | Purpose |
---|---|---|
x | series or numeric | Input value, taken into calculation |
Returns: numeric
or series
.
Example
radians_value = 1.5708
degrees_value = deg(radians_value) -- converts the value into degrees