Acos function
Syntax
Acos(value)
Description
Use the Acos function to calculate the arccosine of the given value, that is, the size of the angle whose cosine is that value.
Parameters
| Parameter | Description |
|---|---|
|
value |
Any real number between -1.00 and 1.00 inclusive, the range of valid cosine values. If the input value is outside this range, an error message appears at runtime ("Decimal arithmetic error occurred. (2,110)"). Adjust your code to provide a valid input value. |
Returns
A value in radians between 0 and pi.
Example
The following example returns the size in radians of the angle whose cosine is 0.5:
&MY_ANGLE = Acos(0.5);