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