atan()
Table of Contents
Overview
The atan() function takes a number (representing a trigonometric tangent) as an argument, and returns the angle (measured in radians) of that number.
Return Type
- Decimal
Syntax
<variable> = <number>.atan();
(OR)
<variable> = atan(<number> );
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | NUMBER |
<number> | The number whose inverse tangent value will be returned. | NUMBER or DECIMAL |
Examples
number= 1;
atanValue = number.atan(); // returns 0.7853981633974483
atanValue = number.atan(); // returns 0.7853981633974483