Returns the arc cosine of a specified numeric expression.
ACOS(nExpression) |
Parameters
- nExpression
- Specifies a numeric expression whose arc cosine ACOS( ) returns. The value of nExpression can range from –1 through +1. The value returned by ACOS( ) ranges from 0 through pi (3.141592). The number of decimal places ACOS( ) returns is determined by SET DECIMALS. Use RTOD( ) to convert radians to degrees.
Return Value
Numeric
Remarks
The arc cosine is returned in radians.
Example
В | Copy Code |
---|---|
CLEAR ? RTOD(ACOS(0)) && Displays 90.00 STORE -1 to gnArcAngle ? RTOD(ACOS(gnArcAngle)) && Displays 180.00 ? RTOD(ACOS(SQRT(2)/2)) && Displays 45.00 |