radians
Table of Contents
Overview
The radians function takes an angle in degrees as argument, and returns its equivalent radians value.
Return Type
- DECIMAL
Syntax
<variable> = <degrees_value>.radians();
(OR)
<variable> = radians(<degrees_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 = 90 ; info angle.radians(); // Returns 1.5707963267948966