degrees
Table of Contents
Overview
The degrees function takes an angle in radians as argument, and returns the value of its equivalent degrees.
Return Type
- DECIMAL
Syntax
<variable> = <radians_value>.degrees();
(OR)
<variable> = degrees(<radians_value>);
where,
Parameter | Data type | Description |
<variable> | DECIMAL | Variable that will contain the converted radians value. |
<degrees_value> | DECIMAL/NUMBER | The angle in degrees that needs to be converted into radians format. |
Examples
angle_in_radians = 6.283185307179586 ; info angle_in_radians.degrees(); // Returns 360