ACos
(Engine-Level Function)
| Description: | Calculates the trigonometric arc cosine in radians. |
| Returns: | Numeric |
Usage: ![]() |
Script or steady state. |
| Function Groups: | Trigonometric Math |
| Related to: | ASin | ATan | Cos | Sin | Tan |
Format: ![]() |
ACos(X) |
| Parameters: |
| X |
| Required. Any numeric expression in the range -1 to +1. |
| Comments: |
The returned angle is in radians. To convert an angle from radians to degrees, divide by \Pi / 180 or (approximately) 0.0174533. \Pi is a defined constant in VTScada. This function does calculations with double-precision floating point values and does not support 64-bit integers computations. |
Example:
RadAngle = ACos(0); DegAngle = RadAngle / \Pi / 180;
In this example, the value of DegAngle will be 90.
