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
(OR)
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
acosValue = number.acos(); // returns 1.0471975511965979