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